From ffd03490ac81feb0fa45c5a7bc5e1bdda875a9d1 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: Lucas Gass --- 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