Skip to content

Commit e52afb1

Browse files
committed
Removed pointless isset() check
Using isset($someVar) && ! empty($someVar) in a conditional is redundant.
1 parent 887150a commit e52afb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ protected function create(string $verb, string $from, $to, array $options = null
13821382
}
13831383

13841384
// Limiting to subdomains?
1385-
else if (isset($options['subdomain']) && ! empty($options['subdomain']))
1385+
else if (! empty($options['subdomain']))
13861386
{
13871387
// If we don't match the current subdomain, then
13881388
// we don't need to add the route.

0 commit comments

Comments
 (0)