From 7e87ad4da353efe69010b0bedabd17226f6db0fc Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Fri, 3 Feb 2023 10:04:15 +0100 Subject: [PATCH] Delint --- registry/save.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/save.go b/registry/save.go index 8e8b44a..72776bb 100644 --- a/registry/save.go +++ b/registry/save.go @@ -298,8 +298,8 @@ func SaveImage(image string, username string, password string, cli command.Cli) if err != nil { return nil, errors.Wrapf(err, "failed to pull index: %s", image) } - manifest, err := ix.IndexManifest() - imageRef, err := name.ParseReference(fmt.Sprintf("%s@%s", ref.Name(), manifest.Manifests[0].Digest.String())) + manifest, _ := ix.IndexManifest() + imageRef, _ := name.ParseReference(fmt.Sprintf("%s@%s", ref.Name(), manifest.Manifests[0].Digest.String())) img, err = remote.Image(imageRef, WithAuth(username, password)) if err != nil { return nil, errors.Wrapf(err, "failed to pull image: %s", image)