mirror of
https://github.com/rclone/rclone
synced 2024-11-20 21:27:33 +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" {
|
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 New Issue
Block a user