Skip to content

Commit

Permalink
Avoided needless for-loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed May 22, 2022
1 parent d59697e commit 4f5b0af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd_find.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ func (fc *findCommand) Execute(args []string) int {
// Build up the list of patterns
//
patterns := []string{}
for _, arg := range args {
patterns = append(patterns, arg)
}
patterns = append(patterns, args...)

//
// Ensure we have a least one.
Expand Down

0 comments on commit 4f5b0af

Please sign in to comment.