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