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

integration/capabilities/capabilities_linux_test.go:73: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:41:56 +01:00
parent ff97ff8320
commit 9a7278fbdc

View File

@@ -70,7 +70,6 @@ func TestNoNewPrivileges(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
t.Run(tc.doc, func(t *testing.T) {
ctx := testutil.StartSpan(ctx, t)