From 1082da8d8760e5c7f32d248bb8e9af8532f5ad87 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Thu, 26 May 2022 00:06:10 +0200 Subject: [PATCH] Refactor --- modules/saml/lib/Controller/SingleLogout.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/saml/lib/Controller/SingleLogout.php b/modules/saml/lib/Controller/SingleLogout.php index 90195a322..dc5528487 100644 --- a/modules/saml/lib/Controller/SingleLogout.php +++ b/modules/saml/lib/Controller/SingleLogout.php @@ -68,12 +68,12 @@ class SingleLogout [$idp, 'doLogoutRedirect'], [$httpUtils->checkURLAllowed($request->request->get('ReturnTo'))] ); - } else { - try { - return new RunnableResponse([Module\saml\IdP\SAML2::class, 'receiveLogoutMessage'], [$idp]); - } catch (UnsupportedBindingException $e) { - throw new Error\Error('SLOSERVICEPARAMS', $e, 400); - } + } + + try { + return new RunnableResponse([Module\saml\IdP\SAML2::class, 'receiveLogoutMessage'], [$idp]); + } catch (UnsupportedBindingException $e) { + throw new Error\Error('SLOSERVICEPARAMS', $e, 400); } Assert::true(false); } -- GitLab