diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 3c241dbc4bc3b..9456d70b9d43c 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -440,14 +440,7 @@ public function fopen($path, $mode) { } 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) {