diff --git a/modules/saml/lib/Controller/SingleLogout.php b/modules/saml/lib/Controller/SingleLogout.php
index 90195a322ebfdd1a8ebf18fbf9b3c4f2593e330b..dc5528487c92c3ec43dd91e6f74c5b67fcc9508f 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);
     }