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 }