From: Tim Düsterhus Date: Thu, 19 May 2022 12:53:17 +0000 (+0200) Subject: Remove obsolete check for `ResponseInterface` in RequestHandler::handle() X-Git-Tag: 6.0.0_Alpha_1~1266^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68573916231622107d8b6eee6b71a16be71c86b5;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete check for `ResponseInterface` in RequestHandler::handle() --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 3e691fcce4..39c33a2176 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -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();