From 6503787f13fee3e3f5255932a2db47e722494fbe Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Mon, 3 Jun 2024 20:11:24 +0200 Subject: [PATCH] Bug 36863: (QA follow-up): tidy up code Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer --- Koha/Middleware/CSRF.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm index 314c311aa6..29b1e1ae25 100644 --- a/Koha/Middleware/CSRF.pm +++ b/Koha/Middleware/CSRF.pm @@ -76,8 +76,7 @@ sub call { $error = "wrong_csrf_token"; } } - } - elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) { + } elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) { $error = sprintf "unknown or unsupported method %s", $request_method; } -- 2.39.5