Bug 40037: (follow-up) Remove redundancy in `before_send_messages`
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 36df107fc9)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
1a93081bf2
commit
cd92d22bc0
|
|
@ -1058,15 +1058,13 @@ sub SendQueuedMessages {
|
|||
}
|
||||
);
|
||||
|
||||
if (@plugins) {
|
||||
foreach my $plugin (@plugins) {
|
||||
try {
|
||||
$plugin->before_send_messages($params);
|
||||
} catch {
|
||||
warn "$_";
|
||||
exit 1 if $params->{exit_on_plugin_failure};
|
||||
};
|
||||
}
|
||||
foreach my $plugin (@plugins) {
|
||||
try {
|
||||
$plugin->before_send_messages($params);
|
||||
} catch {
|
||||
warn "$_";
|
||||
exit 1 if $params->{exit_on_plugin_failure};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue