mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: improve hash_file php usage in Local Storage
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
parent
6674f790a9
commit
9acaf0788f
1 changed files with 1 additions and 8 deletions
|
|
@ -401,14 +401,7 @@ class Local extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
public function hash($type, $path, $raw = false): string|false {
|
||||
/** @var string|false|null */
|
||||
$hash = hash_file($type, $this->getSourcePath($path), $raw);
|
||||
|
||||
if ($hash === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $hash;
|
||||
return hash_file($type, $this->getSourcePath($path), $raw);
|
||||
}
|
||||
|
||||
public function free_space($path) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue