diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-10 17:05:12 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-17 11:19:57 +0100 |
commit | bceabebf9c6c30e2b1057448d74a5de006ef5d1e (patch) | |
tree | 75ec2be4dbb19066ac025a39adb498967076cac8 /mod | |
parent | 519cb85e28e52c476ecb210e1ed201f64190f898 (diff) |
mod/notification-email: drop useless safeguard
Guess it was useful back in the day. Now the function exits early if the
queue is empty... So this can never be zero.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notification-email.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/notification-email.rsc b/mod/notification-email.rsc index e51779b..dd90923 100644 --- a/mod/notification-email.rsc +++ b/mod/notification-email.rsc @@ -71,7 +71,7 @@ $LogPrint warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty."); } - /system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") comment="Sending..." $Scheduler; + /system/scheduler/set interval=($QueueLen . "m") comment="Sending..." $Scheduler; :foreach Id,Message in=$EmailQueue do={ :if ([ :typeof $Message ] = "array" ) do={ |