Skip to content

Commit

Permalink
Removed pointless isset() check
Browse files Browse the repository at this point in the history
Using isset($someVar) && ! empty($someVar) in a conditional is redundant.
  • Loading branch information
dafriend committed Nov 14, 2019
1 parent 887150a commit e52afb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e52afb1

Please sign in to comment.