mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user