forked from TrueCloudLab/frostfs-node
[#302] Fix golint else/return linter errors
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0f3570bdeb
commit
e88c1f750d
9 changed files with 57 additions and 52 deletions
|
@ -32,9 +32,9 @@ func readAttributes(v *viper.Viper) (attrs []string) {
|
|||
attr := v.GetString(cfgNodeAttributePrefix + "_" + strconv.Itoa(i))
|
||||
if attr == "" {
|
||||
return
|
||||
} else {
|
||||
attrs = append(attrs, attr)
|
||||
}
|
||||
|
||||
attrs = append(attrs, attr)
|
||||
}
|
||||
|
||||
return attrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue