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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-11-12 13:01:21 +01:00
parent 443a074fa4
commit 4768d680d1

View File

@@ -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