From 41a8c0305b295d8a48b9a8f6b6f3a3f76b1b6bba Mon Sep 17 00:00:00 2001 From: PuneetPunamiya Date: Thu, 19 Oct 2023 11:04:19 +0530 Subject: [PATCH] Removes unused context from the wrap function Signed-off-by: PuneetPunamiya --- pkg/chains/signing.go | 2 +- pkg/chains/signing/wrap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chains/signing.go b/pkg/chains/signing.go index d6c172eacc..6a28b5e349 100644 --- a/pkg/chains/signing.go +++ b/pkg/chains/signing.go @@ -155,7 +155,7 @@ func (o *ObjectSigner) Sign(ctx context.Context, tektonObj objects.TektonObject) } if payloader.Wrap() { - wrapped, err := signing.Wrap(ctx, signer) + wrapped, err := signing.Wrap(signer) if err != nil { return err } diff --git a/pkg/chains/signing/wrap.go b/pkg/chains/signing/wrap.go index a8e19b9c5c..ee032b1321 100644 --- a/pkg/chains/signing/wrap.go +++ b/pkg/chains/signing/wrap.go @@ -28,7 +28,7 @@ import ( "golang.org/x/crypto/ssh" ) -func Wrap(ctx context.Context, s Signer) (Signer, error) { +func Wrap(s Signer) (Signer, error) { pub, err := s.PublicKey() if err != nil { return nil, err