Skip to content

Commit b36e100

Browse files
committed
Remove redundant path check
The first `if` statement in this method already performs this same check, so the expression here always evaluated to `true`.
1 parent 9fcce5f commit b36e100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ public function getRelativeUriForPath($path)
11201120
}
11211121

11221122
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
1123-
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
1123+
$targetDirs = explode('/', substr($path, 1));
11241124
array_pop($sourceDirs);
11251125
$targetFile = array_pop($targetDirs);
11261126

0 commit comments

Comments
 (0)