Skip to content

Commit

Permalink
refactor: remove unnecessary var copy in for
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 6, 2024
1 parent 27096db commit c9d3118
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ run:
linters:
disable-all: true
enable:
- copyloopvar # detects places where loop variables are copied
- errcheck # Errcheck is a program for checking for unchecked errors in go programs.
- gci # Gci controls Go package import order and makes it always deterministic
- goimports # checks that goimports was run
Expand Down
1 change: 0 additions & 1 deletion runner/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func TestDefaultPathConfig(t *testing.T) {
}}

for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Setenv(airWd, tt.path)
c, err := defaultPathConfig()
Expand Down

0 comments on commit c9d3118

Please sign in to comment.