From 7bd1c8d68ba3fadb74b7f459dd14584c80614dc1 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 20 Apr 2022 05:27:32 +0000 Subject: [PATCH] Bug 29744: Remove unnecessary condition in C4::Auth::safe_exit --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 6b8718ec3e..03bd4c4d88 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -55,9 +55,9 @@ use Koha::CookieManager; use vars qw($ldap $cas $caslogout); our (@ISA, @EXPORT_OK); +#NOTE: The utility of keeping the safe_exit function is that it can be easily re-defined in unit tests and plugins sub safe_exit { - if (C4::Context::psgi_env) { die 'psgi:exit' } - else { exit } + exit; } -- 2.30.2