mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
build: fix gocritic lint issue dupbranchbody
This commit is contained in:
parent
64e8013c1b
commit
86e9a56d73
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user