Remove dead branch in RequestHandler::handleDefaultController()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 14:03:28 +0000 (16:03 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:46:51 +0000 (13:46 +0200)
`$data` is guaranteed to be non-null since the previous commit.

wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 61b0146377e38c67a1f52293c09c6e75a8bcc05a..de3d212308b5e692fce4e6a6a5119177d56bb5f6 100644 (file)
@@ -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);