Skip to content

Commit

Permalink
fix: clean up ineffassign which isn't used in ParsePublicKeyPEM(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Oct 4, 2023
1 parent b284319 commit a6920bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt/keyset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6920bf

Please sign in to comment.