Skip to content

Commit

Permalink
chore: chunks slice loop append replace
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill authored and adamjensenbot committed Sep 8, 2023
1 parent 0c8a3e2 commit da097c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/utils/args/stringlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ func (sl *StringList) Set(str string) error {
return nil
}
chunks := strings.Split(str, ",")
for i := range chunks {
chunk := chunks[i]
sl.StringList = append(sl.StringList, chunk)
}
sl.StringList = append(sl.StringList, chunks...)
return nil
}

Expand Down

0 comments on commit da097c7

Please sign in to comment.