Remove obsolete check for `ResponseInterface` in RequestHandler::handle()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 19 May 2022 12:53:17 +0000 (14:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 19 May 2022 13:04:35 +0000 (15:04 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 3e691fcce409adf81e5fe32f5e98980568cb61b2..39c33a217611216ebb67ec1ccbe2d10cf2b38ed0 100644 (file)
@@ -100,12 +100,9 @@ class RequestHandler extends SingletonFactory
                 \header('cross-origin-resource-policy: same-site');
             }
 
-            // start request
-            $result = $this->getActiveRequest()->execute();
-
-            if ($result instanceof ResponseInterface) {
-                $this->sendPsr7Response($result);
-            }
+            $this->sendPsr7Response(
+                $this->getActiveRequest()->execute()
+            );
         } catch (NamedUserException $e) {
             $e->show();