Skip to content

Commit 0934898

Browse files
authored
Merge pull request #155 from Ayoub-Mabrouk/chore/check
refactor(check): simplified final comparison to directly return boolean result
2 parents a87964c + 6418412 commit 0934898

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)