From 5169c5fab8cd8ada5442b66bfa2f2165e540b9ec Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 May 2020 17:12:56 +0200 Subject: [PATCH] Bug 25411: Group conditions in if elsif Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- Koha/REST/V1/Auth.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/REST/V1/Auth.pm b/Koha/REST/V1/Auth.pm index 481b081010..a4bb7ae233 100644 --- a/Koha/REST/V1/Auth.pm +++ b/Koha/REST/V1/Auth.pm @@ -69,9 +69,7 @@ sub under { if ( $namespace eq 'public' ) { $is_public = 1; - } - - if ( $namespace eq 'contrib' ) { + } elsif ( $namespace eq 'contrib' ) { $is_plugin = 1; } -- 2.39.2