From: Tim Düsterhus Date: Fri, 20 May 2022 14:03:28 +0000 (+0200) Subject: Remove dead branch in RequestHandler::handleDefaultController() X-Git-Tag: 6.0.0_Alpha_1~1246^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3031000a11c338277eb8712bc0d8a6975e50515;p=GitHub%2FWoltLab%2FWCF.git Remove dead branch in RequestHandler::handleDefaultController() `$data` is guaranteed to be non-null since the previous commit. --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 61b0146377..de3d212308 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -270,10 +270,7 @@ final class RequestHandler extends SingletonFactory } $data = ControllerMap::getInstance()->lookupDefaultController($application); - if ($data === null) { - // handle WCF which does not have a default controller - throw new IllegalLinkException(); - } elseif (!empty($data['redirect'])) { + if (!empty($data['redirect'])) { // force a redirect HeaderUtil::redirect($data['redirect'], true, false);