From 3fdb4e55fd49c47420816dfab991312178e9226e Mon Sep 17 00:00:00 2001 From: Jim Date: Sun, 1 Oct 2023 10:43:08 -0400 Subject: [PATCH] fix: clean up ineffassign which isn't used in ParsePublicKeyPEM(...) --- jwt/keyset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwt/keyset.go b/jwt/keyset.go index cfb3a022..c0e3d1bc 100644 --- a/jwt/keyset.go +++ b/jwt/keyset.go @@ -179,7 +179,7 @@ func (ks *staticKeySet) VerifySignature(_ context.Context, token string) (map[st // data must be of PEM-encoded x509 certificate or PKIX public key forms. It returns // an *rsa.PublicKey or *ecdsa.PublicKey. func ParsePublicKeyPEM(data []byte) (crypto.PublicKey, error) { - block, data := pem.Decode(data) + block, _ := pem.Decode(data) if block != nil { var rawKey interface{} var err error