Skip to content

Commit

Permalink
Remove deprecated exportloopref linter and add copyloopvar instead
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Haines <[email protected]>
  • Loading branch information
haines committed Nov 4, 2024
1 parent f1ac4fb commit 7124e18
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ linters:
- asciicheck
- bidichk
- bodyclose
- copyloopvar
- dupl
- durationcheck
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- goconst
Expand Down
2 changes: 0 additions & 2 deletions cerbos/grpc_admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ func TestAdminClient(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
have, err := ac.ListPolicies(context.Background(), tc.options...)
require.NoError(t, err)
Expand Down Expand Up @@ -299,7 +298,6 @@ func TestAdminClient(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
have, err := ac.InspectPolicies(context.Background(), tc.options...)
require.NoError(t, err)
Expand Down
1 change: 0 additions & 1 deletion cerbos/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func TestGRPCClient(t *testing.T) {
}

for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Run("tcp", func(t *testing.T) {
s, err := launcher.Launch(testutil.LaunchConf{
Expand Down

0 comments on commit 7124e18

Please sign in to comment.