Remove redundant path check

The first `if` statement in this method already performs this same
check, so the expression here always evaluated to `true`.
This commit is contained in:
Colin O'Dell 2018-10-02 08:07:35 -04:00
parent d33e2458ec
commit 10795cf096

View File

@ -1120,7 +1120,7 @@ class Request
}
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
$targetDirs = explode('/', substr($path, 1));
array_pop($sourceDirs);
$targetFile = array_pop($targetDirs);