Skip to content

Commit

Permalink
Test go linting works
Browse files Browse the repository at this point in the history
  • Loading branch information
jamlo committed Oct 25, 2024
1 parent feec77c commit e5c263a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/util/flags/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (s *ArrayValueFlag[T]) Set(input string) error {
func (s *ArrayValueFlag[T]) String() string {
strs := make([]string, 0, len(*s.value))
for _, spec := range *s.value {
spec := spec

Check failure on line 99 in cmd/util/flags/types.go

View workflow job for this annotation

GitHub Actions / go-lint (ubuntu-latest)

The copy of the 'for' variable "spec" can be deleted (Go 1.22+) (copyloopvar)
strs = append(strs, s.stringer(&spec))
}
return strings.Join(strs, ", ")
Expand Down

0 comments on commit e5c263a

Please sign in to comment.