Skip to content

Commit 314b6b8

Browse files
committed
Remove guard that specifically maps "BYTE"
This just adds complexity and doesn't mean much for performance.
1 parent f1ab9eb commit 314b6b8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/FileSize/UnitMap/UnitMapper.php

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ public function __construct()
4646
*/
4747
public function keyFromString($unitString)
4848
{
49-
if ($unitString === UnitMap::BYTE) {
50-
return UnitMap::BYTE;
51-
}
52-
5349
if (isset($this->cache[$unitString])) {
5450
return $this->cache[$unitString];
5551
}

0 commit comments

Comments
 (0)