Fix small lint errors found by gocritic

This commit is contained in:
Deluan committed 2021-07-15 13:43:03 -04:00
1 parent 8d56ec898e
commit b0fc684cb6
7 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ func ParseIndexGroups(spec string) IndexGroups {
sub := re.FindStringSubmatch(g)
if len(sub) > 0 {
i := 0
chars := strings.SplitN(sub[2], "", -1)
chars := strings.Split(sub[2], "")
for _, c := range chars {
parsed[c] = sub[1]
i++