Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Trim space from comma-separated uints in CLI.
Browse files Browse the repository at this point in the history
[finishes #104501566]
  • Loading branch information
robdimsdale committed Sep 30, 2015
1 parent 58bdd65 commit d6b032a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/wl/commands/wl.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ func splitStringToUints(input string) ([]uint, error) {
splitUints := make([]uint, len(split))

for i, s := range split {
s = strings.TrimSpace(s)
idInt, err := strconv.Atoi(s)
if err != nil {
return nil, fmt.Errorf("%v at index %d", err, i)
Expand Down

0 comments on commit d6b032a

Please sign in to comment.