Skip to content

Commit 9c3754a

Browse files
committed
Remove unneeded guard
1 parent 5f7a8fb commit 9c3754a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/LocalizedUrlGenerator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ public function generateFromRequest($locale = null, $parameters = null, $absolut
9393
*/
9494
protected function generateFromNamedRoute($locale, $parameters, $absolute)
9595
{
96-
if ( ! $this->routeExists()) {
97-
return '';
98-
}
99-
10096
try {
10197
return route($this->route->getName(), $parameters, $absolute, $locale);
10298
} catch (InvalidArgumentException $e) {

0 commit comments

Comments
 (0)