Browse Source

Bug 21073: (QA follow-up) Avoid unnecessary unless/else construct

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
remotes/origin/19.11.x
Tomás Cohen Arazi 3 years ago
committed by Martin Renvoize
parent
commit
3175eebdfc
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      plugins/plugins-upload.pl

4
plugins/plugins-upload.pl

@ -86,9 +86,9 @@ if ($plugins_enabled) {
$template->param( ERRORS => [ \%errors ] );
output_html_with_http_headers $input, $cookie, $template->output;
exit;
} else {
Koha::Plugins->new()->InstallPlugins();
}
Koha::Plugins->new()->InstallPlugins();
}
} elsif ( ( $op eq 'Upload' ) && !$uploadfile ) {
warn "Problem uploading file or no file uploaded.";

Loading…
Cancel
Save