Skip to content

Commit

Permalink
revert refactoring of fallback call
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Sniatala <[email protected]>
  • Loading branch information
ThomasMeschke and michalsn authored Nov 19, 2024
1 parent 8829ea8 commit 3767b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function getSizeByUnit(string $unit = 'b')
return match (strtolower($unit)) {
'kb' => $this->getSizeByUnitBinary(FileSizeUnit::KB),
'mb' => $this->getSizeByUnitBinary(FileSizeUnit::MB),
default => $this->getSizeByUnitBinary(FileSizeUnit::B)
default => $this->getSize()
};
}

Expand Down

0 comments on commit 3767b29

Please sign in to comment.