From 364aa523d3594f75fb606c3457b30faf999982fe Mon Sep 17 00:00:00 2001 From: machecazzon Date: Tue, 24 Sep 2024 09:41:52 +0200 Subject: [PATCH] SPIKE: cleanup --- pkg/chartutils/images.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/chartutils/images.go b/pkg/chartutils/images.go index 7cbffc5..36b3333 100644 --- a/pkg/chartutils/images.go +++ b/pkg/chartutils/images.go @@ -288,8 +288,7 @@ func getImageLayoutDir(imagesDir string, dgst imagelock.DigestInfo) string { func pullImage(image string, digest imagelock.DigestInfo, imagesDir string, o crane.Options) (string, error) { imgDir := getImageLayoutDir(imagesDir, digest) - - var src = fmt.Sprintf("%s@%s", image, digest.Digest) + src := fmt.Sprintf("%s@%s", image, digest.Digest) if strings.Contains(image, string(digest.Digest)) { src = image }