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:
authoracsfer <carlos@reendex.com>2021-10-04 18:21:37 +0300
committerGitHub <noreply@github.com>2021-10-04 18:21:37 +0300
commit98eac0fc05dac7c694038b169cf98fd81fbccc92 (patch)
tree28bf070d4ab5b6d9340a548c4a7a81faff9d1c29 /lib/private/Files/Storage
parent8a8df49bc0f7a4f540a9d642fa3518f5d0b64803 (diff)
Simplify :)
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 72a1ad90d6e..7e56293e4cf 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -216,7 +216,7 @@ class Local extends \OC\Files\Storage\Common {
}
public function filesize($path) {
- if ($this->is_dir($path) || !$this->is_file($path)) {
+ if (!$this->is_file($path)) {
return 0;
}
$fullPath = $this->getSourcePath($path);