mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Simplify the logic a big by making Notice$email_dest have a default rather than be optional
This commit is contained in:
parent
bfb26b9227
commit
9d0bd96e1f
21 changed files with 40 additions and 56 deletions
|
@ -35,11 +35,6 @@ hook notice(n: Notice::Info)
|
|||
}
|
||||
|
||||
if ( email != "" )
|
||||
{
|
||||
if ( ! n?$email_dest )
|
||||
n$email_dest = set();
|
||||
|
||||
add n$email_dest[email];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue