diff --git a/decor/size_type.go b/decor/size_type.go index e4b9740..2b06255 100644 --- a/decor/size_type.go +++ b/decor/size_type.go @@ -3,7 +3,6 @@ import ( "fmt" "io" - "math" "strconv" ) @@ -47,7 +46,7 @@ unit = _iMiB case self < _iTiB: unit = _iGiB - case self <= math.MaxInt64: + default: unit = _iTiB } @@ -96,7 +95,7 @@ unit = _MB case self < _TB: unit = _GB - case self <= math.MaxInt64: + default: unit = _TB }