Browse Source

Remove useless coalescing operator on non-null return value

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/37344/head
Côme Chilliet 3 years ago
committed by MichaIng
parent
commit
8104d9f5d8
No known key found for this signature in database GPG Key ID: 442B9ADE65643FE
  1. 2
      lib/private/Files/Storage/Local.php

2
lib/private/Files/Storage/Local.php

@ -249,7 +249,7 @@ class Local extends \OC\Files\Storage\Common {
$fullPath = $this->getSourcePath($path);
if (PHP_INT_SIZE === 4) {
$helper = new \OC\LargeFileHelper;
return $helper->getFileSize($fullPath) ?? false;
return $helper->getFileSize($fullPath);
}
return filesize($fullPath);
}

Loading…
Cancel
Save