Skip to content

Commit

Permalink
Back out of removing pattern addition to expansions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcg committed Feb 21, 2025
1 parent a187cb1 commit 29b35eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmdutil/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ func GlobWindowsPaths(patterns []string) ([]string, error) {
if err != nil {
return nil, fmt.Errorf("%s: %v", pattern, err)
}
if len(matches) != 0 {
if len(matches) > 0 {
expansions = append(expansions, matches...)
} else {
expansions = append(expansions, pattern)
}
}

Expand Down

0 comments on commit 29b35eb

Please sign in to comment.