mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Use .contains() instead of .find() or .count()
This commit is contained in:
parent
d20550f553
commit
b592b6c998
68 changed files with 201 additions and 207 deletions
|
@ -31,7 +31,7 @@ refine connection SMB_Conn += {
|
|||
|
||||
function get_is_file_a_pipe(id: uint16): bool
|
||||
%{
|
||||
if ( is_file_a_pipe.count(id) > 0 )
|
||||
if ( is_file_a_pipe.contains(id) )
|
||||
{
|
||||
bool is_pipe = is_file_a_pipe.at(id);
|
||||
is_file_a_pipe.erase(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue