mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
lint fixes: ensuring functions return values, robustness to nil Val's
This commit is contained in:
parent
e21c0f1115
commit
5a8ba8c3e5
4 changed files with 8 additions and 2 deletions
|
@ -33,7 +33,7 @@ function id_matches_direction(id: conn_id, d: Direction): bool
|
|||
return (o_local && !r_local) || (!o_local && r_local);
|
||||
else if ( d == OUTBOUND )
|
||||
return o_local && !r_local;
|
||||
else if ( d == INBOUND )
|
||||
else # d == INBOUND
|
||||
return !o_local && r_local;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue