Skip to content

Commit 5780ecc

Browse files
committed
images: Replace unused function parameters with '_'
Signed-off-by: Stefan Berger <[email protected]>
1 parent 7dc8592 commit 5780ecc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

images/encryption/encryption.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func isLocalPlatform(platform *ocispec.Platform) bool {
5858
}
5959

6060
// IsEncryptedDiff returns true if mediaType is a known encrypted media type.
61-
func IsEncryptedDiff(ctx context.Context, mediaType string) bool {
61+
func IsEncryptedDiff(_ context.Context, mediaType string) bool {
6262
switch mediaType {
6363
case encocispec.MediaTypeLayerZstdEnc, encocispec.MediaTypeLayerGzipEnc, encocispec.MediaTypeLayerEnc:
6464
return true
@@ -273,7 +273,7 @@ func ingestReader(ctx context.Context, cs content.Ingester, ref string, r io.Rea
273273
}
274274

275275
// Encrypt or decrypt all the Children of a given descriptor
276-
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) {
276+
func cryptChildren(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter, cryptoOp cryptoOp, _ *ocispec.Platform) (ocispec.Descriptor, bool, error) {
277277
children, err := images.Children(ctx, cs, desc)
278278
if err != nil {
279279
if errdefs.IsNotFound(err) {

0 commit comments

Comments
 (0)