Skip to content

Commit

Permalink
Removes unused context from the wrap function (#960)
Browse files Browse the repository at this point in the history
Signed-off-by: PuneetPunamiya <[email protected]>
  • Loading branch information
PuneetPunamiya authored Oct 25, 2023
1 parent 93c276b commit 7284e7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/chains/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/chains/signing/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7284e7c

Please sign in to comment.