diff --git a/fs/countsuffix.go b/fs/countsuffix.go index 232a2ff43..b3e1daa9e 100644 --- a/fs/countsuffix.go +++ b/fs/countsuffix.go @@ -81,13 +81,7 @@ func (x CountSuffix) Unit(unit string) string { if val == "off" { return val } - var suffixUnit string - if suffix != "" && unit != "" { - suffixUnit = suffix + unit - } else { - suffixUnit = suffix + unit - } - return val + " " + suffixUnit + return val + " " + suffix + unit } func (x *CountSuffix) multiplierFromSymbol(s byte) (found bool, multiplier float64) { diff --git a/fs/sizesuffix.go b/fs/sizesuffix.go index 0a2a5661c..c8d454e81 100644 --- a/fs/sizesuffix.go +++ b/fs/sizesuffix.go @@ -82,13 +82,7 @@ func (x SizeSuffix) unit(unit string) string { if val == "off" { return val } - var suffixUnit string - if suffix != "" && unit != "" { - suffixUnit = suffix + unit - } else { - suffixUnit = suffix + unit - } - return val + " " + suffixUnit + return val + " " + suffix + unit } // BitUnit turns SizeSuffix into a string with bit unit