forked from TrueCloudLab/rclone
build: fix gocritic lint issue dupbranchbody
This commit is contained in:
parent
64e8013c1b
commit
86e9a56d73
2 changed files with 2 additions and 14 deletions
|
@ -81,13 +81,7 @@ func (x CountSuffix) Unit(unit string) string {
|
||||||
if val == "off" {
|
if val == "off" {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
var suffixUnit string
|
return val + " " + suffix + unit
|
||||||
if suffix != "" && unit != "" {
|
|
||||||
suffixUnit = suffix + unit
|
|
||||||
} else {
|
|
||||||
suffixUnit = suffix + unit
|
|
||||||
}
|
|
||||||
return val + " " + suffixUnit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CountSuffix) multiplierFromSymbol(s byte) (found bool, multiplier float64) {
|
func (x *CountSuffix) multiplierFromSymbol(s byte) (found bool, multiplier float64) {
|
||||||
|
|
|
@ -82,13 +82,7 @@ func (x SizeSuffix) unit(unit string) string {
|
||||||
if val == "off" {
|
if val == "off" {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
var suffixUnit string
|
return val + " " + suffix + unit
|
||||||
if suffix != "" && unit != "" {
|
|
||||||
suffixUnit = suffix + unit
|
|
||||||
} else {
|
|
||||||
suffixUnit = suffix + unit
|
|
||||||
}
|
|
||||||
return val + " " + suffixUnit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// BitUnit turns SizeSuffix into a string with bit unit
|
// BitUnit turns SizeSuffix into a string with bit unit
|
||||||
|
|
Loading…
Reference in a new issue