Skip to content

Commit 6418412

Browse files
committed
refactor(check): simplified final comparison to directly return boolean result
1 parent a87964c commit 6418412

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/ExactUrlChecker.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ public static function check(string $url, string $requestUrl, string $rootUrl =
3939
$matchPath = Str::removeFromStart($rootUrl, $matchPath);
4040

4141
// If this url is an exact match for the url we're matching with, it's exact-active.
42-
if ($matchPath === $itemPath) {
43-
return true;
44-
}
45-
46-
return false;
42+
return $matchPath === $itemPath;
4743
}
4844
}

0 commit comments

Comments
 (0)