From 3175eebdfcb9a8bd0c7fa3cfd456e928c081976f 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 Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- 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.39.5