Skip to content

Commit

Permalink
SPIKE: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
machecazzon authored Sep 24, 2024
1 parent 5546911 commit 364aa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/chartutils/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 364aa52

Please sign in to comment.