From 5780ecc88b4b08c4f1d8e6372869e39ab1fcbf35 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 1 May 2023 11:12:12 -0400 Subject: [PATCH] images: Replace unused function parameters with '_' Signed-off-by: Stefan Berger --- images/encryption/encryption.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/encryption/encryption.go b/images/encryption/encryption.go index 2fbbd269..c27f51ad 100644 --- a/images/encryption/encryption.go +++ b/images/encryption/encryption.go @@ -58,7 +58,7 @@ func isLocalPlatform(platform *ocispec.Platform) bool { } // IsEncryptedDiff returns true if mediaType is a known encrypted media type. -func IsEncryptedDiff(ctx context.Context, mediaType string) bool { +func IsEncryptedDiff(_ context.Context, mediaType string) bool { switch mediaType { case encocispec.MediaTypeLayerZstdEnc, encocispec.MediaTypeLayerGzipEnc, encocispec.MediaTypeLayerEnc: return true @@ -273,7 +273,7 @@ func ingestReader(ctx context.Context, cs content.Ingester, ref string, r io.Rea } // Encrypt or decrypt all the Children of a given descriptor -func cryptChildren(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter, cryptoOp cryptoOp, thisPlatform *ocispec.Platform) (ocispec.Descriptor, bool, error) { +func cryptChildren(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter, cryptoOp cryptoOp, _ *ocispec.Platform) (ocispec.Descriptor, bool, error) { children, err := images.Children(ctx, cs, desc) if err != nil { if errdefs.IsNotFound(err) {