From 8d83d22a498c95b28221d624f3efe175eea20763 Mon Sep 17 00:00:00 2001 From: "Badr, Nesma" Date: Mon, 15 Jul 2024 13:55:07 +0200 Subject: [PATCH] Code Review comments --- internal/manifest/parse.go | 2 -- pkg/img/layer.go | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/manifest/parse.go b/internal/manifest/parse.go index cd617f7daf..28c7215413 100644 --- a/internal/manifest/parse.go +++ b/internal/manifest/parse.go @@ -52,7 +52,6 @@ func (p PathExtractor) GetPathFromRawManifest(ctx context.Context, return manifestPath, nil } - // pull image layer layer, err := img.PullLayer(ctx, imageRef, keyChain) if err != nil { return "", err @@ -65,7 +64,6 @@ func (p PathExtractor) GetPathFromRawManifest(ctx context.Context, } defer blobReadCloser.Close() - // create dir for uncompressed manifest if err := os.MkdirAll(installPath, fs.ModePerm); err != nil { return "", fmt.Errorf( "failure while creating installPath directory for layer %s: %w", diff --git a/pkg/img/layer.go b/pkg/img/layer.go index 2f720f1643..0d01fb3dc5 100644 --- a/pkg/img/layer.go +++ b/pkg/img/layer.go @@ -50,8 +50,7 @@ func (o *OCI) String() string { } type ( - LayerType string - Layer struct { + Layer struct { LayerName LayerRepresentation }