aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/local.php5
-rw-r--r--lib/private/files/storage/mappedlocal.php5
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index f4bc5085364..e33747bbd52 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -112,10 +112,7 @@ if (\OC_Util::runningOnWindows()) {
$fullPath = $this->datadir . $path;
if (PHP_INT_SIZE === 4) {
$helper = new \OC\LargeFileHelper;
- $filesize = $helper->getFilesize($fullPath);
- if (!is_null($filesize)) {
- return $filesize;
- }
+ return $helper->getFilesize($fullPath);
}
return filesize($fullPath);
}
diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php
index f38b48db5de..ea4deaa66e8 100644
--- a/lib/private/files/storage/mappedlocal.php
+++ b/lib/private/files/storage/mappedlocal.php
@@ -134,10 +134,7 @@ class MappedLocal extends \OC\Files\Storage\Common {
$fullPath = $this->buildPath($path);
if (PHP_INT_SIZE === 4) {
$helper = new \OC\LargeFileHelper;
- $filesize = $helper->getFilesize($fullPath);
- if (!is_null($filesize)) {
- return $filesize;
- }
+ return $helper->getFilesize($fullPath);
}
return filesize($fullPath);
}