Skip to content

Commit 6adba23

Browse files
authored
go: remove loop variable copying (#2044)
1 parent c1f22b1 commit 6adba23

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ linters:
44
enable:
55
- gci
66
- gofmt
7+
- copyloopvar
78
issues:
89
exclude-dirs:
910
- terraform/

plugin/install_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ func TestNewGitHubClient(t *testing.T) {
7070
}
7171

7272
for _, tc := range cases {
73-
tc := tc
74-
7573
t.Run(tc.name, func(t *testing.T) {
7674
client, err := newGitHubClient(context.Background(), tc.config)
7775
if err != nil {

0 commit comments

Comments
 (0)