Bug 35655: (follow-up) Fix perlcritic error

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2024-09-30 13:52:21 -03:00
parent 67e77e8431
commit ae52de87f8
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 3 additions and 1 deletions

View File

@ -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';