From b8b23c4ccca58c4a7d8170aa0dfa6eb252eca780 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 --- 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 c73a42e67b..10f0c5f40f 100644 --- a/Koha/Middleware/CSRF.pm +++ b/Koha/Middleware/CSRF.pm @@ -71,8 +71,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.45.2