golint: Fix ineffassign mistakes

This commit is contained in:
James Shubin
2018-02-21 22:29:44 -05:00
parent 0815b20b76
commit 14ddd7c196
11 changed files with 13 additions and 14 deletions

View File

@@ -334,7 +334,7 @@ func FlattenListWithSplit(input []string, split []string) []string {
}
out := []string{}
for _, x := range input {
s := []string{}
var s []string
if len(split) == 1 {
s = strings.Split(x, split[0]) // split by only string
} else {