Skip to content

Commit e1a3275

Browse files
committed
Remove unnecessary logic
1 parent 7bb930b commit e1a3275

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/FileSize.php

-4
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ public function asAuto($precision = 2)
135135
$size = $this->bytes / Math::bytesByFactor($factor);
136136
$unit = $this->unitMapper->keyFromIndex($factor);
137137

138-
if ($unit === UnitMap::BYTE) {
139-
return $size . ' ' . UnitMap::BYTE;
140-
}
141-
142138
return self::formatNumber($size, $precision, $unit);
143139
}
144140

0 commit comments

Comments
 (0)