Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-11-01 13:26:17 +0300
committerGitHub <noreply@github.com>2021-11-01 13:26:17 +0300
commitd6a26b25364a1ab2183085d09546d8b075ceff6b (patch)
tree3fac0dd35a7a47c093d7fabcbd1133df7a8f9a11 /lib/private/Files/View.php
parente1bf5c1cd37f29281ab775795b8af0edbb3fc11f (diff)
Revert "add dav plugin to trigger recalculating of checksums"
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index cafa6952a62..113290e2686 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1082,7 +1082,7 @@ class View {
* @param string $type
* @param string $path
* @param bool $raw
- * @return bool|string
+ * @return bool|null|string
*/
public function hash($type, $path, $raw = false) {
$postFix = (substr($path, -1) === '/') ? '/' : '';
@@ -1099,13 +1099,12 @@ class View {
[Filesystem::signal_param_path => $this->getHookPath($path)]
);
}
- /** @var Storage|null $storage */
[$storage, $internalPath] = Filesystem::resolvePath($absolutePath . $postFix);
if ($storage) {
return $storage->hash($type, $internalPath, $raw);
}
}
- return false;
+ return null;
}
/**