Bug 30984: (QA follow-up) Ternary formatting style

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-07-29 06:39:21 +00:00 committed by Tomas Cohen Arazi
parent 18fd0c89cf
commit b3a0d75a40
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -90,9 +90,8 @@ sub logaction {
}
}
my $script =
$interface eq 'cron' ? basename($0)
: $interface eq 'commandline' ? basename($0)
my $script = ( $interface eq 'cron' or $interface eq 'commandline' )
? basename($0)
: undef;
my $dbh = C4::Context->dbh;