From e52afb101dfc6fab8fded2e7ea3ba6f0ad9eea43 Mon Sep 17 00:00:00 2001 From: dafriend Date: Thu, 14 Nov 2019 08:58:01 -0600 Subject: [PATCH] Removed pointless isset() check Using isset($someVar) && ! empty($someVar) in a conditional is redundant. --- system/Router/RouteCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Router/RouteCollection.php b/system/Router/RouteCollection.php index 6cc01b4342af..8cdeadf0f904 100644 --- a/system/Router/RouteCollection.php +++ b/system/Router/RouteCollection.php @@ -1382,7 +1382,7 @@ protected function create(string $verb, string $from, $to, array $options = null } // Limiting to subdomains? - else if (isset($options['subdomain']) && ! empty($options['subdomain'])) + else if (! empty($options['subdomain'])) { // If we don't match the current subdomain, then // we don't need to add the route.