Skip to content

Commit

Permalink
Remove unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisullyott committed May 29, 2019
1 parent 7bb930b commit e1a3275
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/FileSize.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ public function asAuto($precision = 2)
$size = $this->bytes / Math::bytesByFactor($factor);
$unit = $this->unitMapper->keyFromIndex($factor);

if ($unit === UnitMap::BYTE) {
return $size . ' ' . UnitMap::BYTE;
}

return self::formatNumber($size, $precision, $unit);
}

Expand Down

0 comments on commit e1a3275

Please sign in to comment.