Simplify the logic a big by making Notice$email_dest have a default rather than be optional

This commit is contained in:
Vlad Grigorescu 2021-06-17 10:31:04 -05:00
parent bfb26b9227
commit 9d0bd96e1f
21 changed files with 40 additions and 56 deletions

View file

@ -35,11 +35,6 @@ hook notice(n: Notice::Info)
}
if ( email != "" )
{
if ( ! n?$email_dest )
n$email_dest = set();
add n$email_dest[email];
}
}
}