Bug 35655: (follow-up) Fix perlcritic error
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
67e77e8431
commit
ae52de87f8
|
|
@ -63,8 +63,10 @@ Connect to the message broker using default guest/guest credential
|
|||
|
||||
sub connect {
|
||||
my ( $self );
|
||||
|
||||
my $notification_method = C4::Context->preference('JobsNotificationMethod') // 'STOMP';
|
||||
return undef
|
||||
|
||||
return
|
||||
unless $notification_method eq 'STOMP';
|
||||
|
||||
my $hostname = $ENV{KOHA_STOMP_HOSTNAME} // 'localhost';
|
||||
|
|
|
|||
Loading…
Reference in New Issue