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.
This commit is contained in:
Christian Hesse 2024-12-10 17:05:12 +01:00
parent 519cb85e28
commit bceabebf9c

View file

@ -71,7 +71,7 @@
$LogPrint warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty."); $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={ :foreach Id,Message in=$EmailQueue do={
:if ([ :typeof $Message ] = "array" ) do={ :if ([ :typeof $Message ] = "array" ) do={