From 324fa196f036fc3bf917e69e4ce2e72fe760890f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 17 Jun 2019 08:18:48 -0300 Subject: [PATCH] Bug 21073: (QA follow-up) Avoid unnecessary unless/else construct Signed-off-by: Tomas Cohen Arazi --- plugins/plugins-upload.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/plugins-upload.pl b/plugins/plugins-upload.pl index 2675d8e149..c849942c47 100755 --- a/plugins/plugins-upload.pl +++ b/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."; -- 2.22.0