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>
This commit is contained in:
parent
17d02662c4
commit
36df107fc9
|
|
@ -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