Skip to content

Commit

Permalink
safer code
Browse files Browse the repository at this point in the history
  • Loading branch information
sledigabel committed Jul 18, 2023
1 parent cd25d87 commit c244149
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/foreach/foreach.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ MAIN:
helpFlag = true
default:
// we've parsed everything that could be parsed; this is now the command
if len(args[i:]) > 0 {
strippedArgs = args[i:]
}
strippedArgs = append(strippedArgs, args[i:]...)
break MAIN
}
}
Expand Down

0 comments on commit c244149

Please sign in to comment.