integration/daemon: remove redundant capturing of loop vars (copyloopvar)

integration/daemon/daemon_test.go:115:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
            tc := tc
            ^
    integration/daemon/daemon_test.go:161:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
            tc := tc
            ^
    integration/daemon/daemon_test.go:234:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
            tc := tc
            ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-11-12 13:42:43 +01:00
parent 9a7278fbdc
commit ee54e43bf1

View File

@@ -112,7 +112,6 @@ func TestDaemonConfigValidation(t *testing.T) {
},
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
_ = testutil.StartSpan(ctx, t)
@@ -158,7 +157,6 @@ func TestConfigDaemonSeccompProfiles(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.doc, func(t *testing.T) {
_ = testutil.StartSpan(ctx, t)
@@ -231,7 +229,6 @@ func TestDaemonConfigFeatures(t *testing.T) {
},
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
_ = testutil.StartSpan(ctx, t)