[#302] Fix golint else/return linter errors

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-11 18:21:06 +03:00 committed by Alex Vanin
parent 0f3570bdeb
commit e88c1f750d
9 changed files with 57 additions and 52 deletions

View file

@ -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