From 4768d680d188ce3530371e2fc0f3d1978d865924 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 12 Nov 2024 13:01:21 +0100 Subject: [PATCH] libcontainerd/remote: remove redundant capturing of loop vars (copyloopvar) pkg/idtools/idtools_unix_test.go:188:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar) tc := tc ^ Signed-off-by: Sebastiaan van Stijn --- libcontainerd/remote/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/libcontainerd/remote/client.go b/libcontainerd/remote/client.go index 12084cbc3a..d02c0b3acb 100644 --- a/libcontainerd/remote/client.go +++ b/libcontainerd/remote/client.go @@ -448,7 +448,6 @@ func (t *task) CreateCheckpoint(ctx context.Context, checkpointDir string, exit var cpDesc *ocispec.Descriptor for _, m := range index.Manifests { - m := m if m.MediaType == images.MediaTypeContainerd1Checkpoint { cpDesc = &m //nolint:gosec break