lint fixes: ensuring functions return values, robustness to nil Val's

This commit is contained in:
Vern Paxson 2021-03-18 08:21:19 -07:00
parent e21c0f1115
commit 5a8ba8c3e5
4 changed files with 8 additions and 2 deletions

View file

@ -217,7 +217,7 @@ function set_current_threshold(c: connection, ttype: threshold_type, is_orig: bo
return set_current_conn_packets_threshold(c$id, t, T);
else if ( ttype == PACKETS && ! is_orig )
return set_current_conn_packets_threshold(c$id, t, F);
else if ( ttype == DURATION )
else # ttype == DURATION
return set_current_conn_duration_threshold(c$id, td);
}