Skip to content

Commit

Permalink
Remove useless coalescing operator on non-null return value
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and MichaIng committed Apr 1, 2023
1 parent da618c4 commit 8104d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function filesize($path): false|int|float {
$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);
}
Expand Down

0 comments on commit 8104d9f

Please sign in to comment.