Skip to content

Commit

Permalink
Applied recommendations from the linters
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor committed Dec 20, 2024
1 parent 2cb44fb commit 051c6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/keypair/secp256k1/pem_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func PemToPrivateKey(content []byte) (*secp256k1.PrivateKey, error) {

var privKey ecPrivateKey
if _, err := asn1.Unmarshal(block.Bytes, &privKey); err != nil {
return nil, fmt.Errorf("x509: failed to parse EC private key: " + err.Error())
return nil, fmt.Errorf("x509: failed to parse EC private key: %s", err.Error())
}
if privKey.Version != 1 {
return nil, fmt.Errorf("x509: unknown EC private key version %d", privKey.Version)
Expand Down

0 comments on commit 051c6be

Please sign in to comment.