Skip to content

Commit e37a9ff

Browse files
committed
Fix List
1 parent c563a84 commit e37a9ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ func ListToSet(s []string) []string {
99
u := make([]string, len(m))
1010
i := 0
1111
for t := range m {
12+
if len(t) == 0 {
13+
continue
14+
}
1215
u[i] = t
1316
i++
1417
}
18+
u = u[:i]
1519
return u
1620
}

0 commit comments

Comments
 (0)