Fix typos.

pull/717/head
Mariano Cano 3 years ago
parent d02cb1c869
commit 97d08a1b61

@ -47,11 +47,11 @@ func vaultBaseURL(vault string) string {
func convertKey(key *keyvault.JSONWebKey) (crypto.PublicKey, error) { func convertKey(key *keyvault.JSONWebKey) (crypto.PublicKey, error) {
b, err := json.Marshal(key) b, err := json.Marshal(key)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "error marshalling key") return nil, errors.Wrap(err, "error marshaling key")
} }
var jwk jose.JSONWebKey var jwk jose.JSONWebKey
if err := jwk.UnmarshalJSON(b); err != nil { if err := jwk.UnmarshalJSON(b); err != nil {
return nil, errors.Wrap(err, "error unmarshalling key") return nil, errors.Wrap(err, "error unmarshaling key")
} }
return jwk.Key, nil return jwk.Key, nil
} }

Loading…
Cancel
Save