chore(util): Fix modernize linter (#26344)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2026-02-09 16:59:32 +01:00
committed by GitHub
parent a108a84f62
commit 847b8b203c
7 changed files with 0 additions and 8 deletions

View File

@@ -125,7 +125,6 @@ func TestStateDiff(t *testing.T) {
},
}
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
// given
dc := diffConfig(t, tc.params())

View File

@@ -1,5 +1,4 @@
//go:build !race
// +build !race
package db

View File

@@ -141,7 +141,6 @@ func Test_kubeErrToGRPC(t *testing.T) {
},
}
for _, c := range cases {
c := c
t.Run(c.name, func(t *testing.T) {
// when
err := kubeErrToGRPC(c.givenErrFn())

View File

@@ -85,7 +85,6 @@ func TestBlockingDial_ProxyEnvironmentHandling(t *testing.T) {
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
clearProxyEnv(t)
applyProxyEnv(t, tt.proxyEnv)

View File

@@ -77,7 +77,6 @@ func TestRelativePath(t *testing.T) {
},
}
for _, c := range cases {
c := c
t.Run(c.name, func(t *testing.T) {
// given
t.Parallel()
@@ -134,7 +133,6 @@ func TestInbound(t *testing.T) {
},
}
for _, c := range cases {
c := c
t.Run(c.name, func(t *testing.T) {
// given
t.Parallel()

View File

@@ -1,5 +1,4 @@
//go:build !race
// +build !race
package rbac

View File

@@ -1,5 +1,4 @@
//go:build race
// +build race
package settings