remove unneeded if

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-08-28 11:43:23 +02:00
parent 2879472f81
commit af381a9a93
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 42 additions and 44 deletions

View File

@ -244,7 +244,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
}
public function fopen($path, $mode) {
if ($source = $this->getUnjailedPath($path)) {
$source = $this->getUnjailedPath($path);
switch ($mode) {
case 'r+':
case 'rb+':
@ -294,8 +294,6 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
\OCP\Util::emitHook('\OC\Files\Storage\Shared', 'fopen', $info);
return $this->nonMaskedStorage->fopen($this->getUnjailedPath($path), $mode);
}
return false;
}
/**
* see http://php.net/manual/en/function.rename.php