Fix linting issues

This commit is contained in:
Herman Slatman 2021-12-07 16:28:06 +01:00
parent 6e11657204
commit 9885d42711
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -50,7 +50,7 @@ func newACMEProv(t *testing.T) *provisioner.ACME {
return a return a
} }
func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string) (*jose.JSONWebSignature, error) { func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID, u string) (*jose.JSONWebSignature, error) {
signer, err := jose.NewSigner( signer, err := jose.NewSigner(
jose.SigningKey{ jose.SigningKey{
Algorithm: jose.SignatureAlgorithm("HS256"), Algorithm: jose.SignatureAlgorithm("HS256"),
@ -59,7 +59,7 @@ func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string
&jose.SignerOptions{ &jose.SignerOptions{
ExtraHeaders: map[jose.HeaderKey]interface{}{ ExtraHeaders: map[jose.HeaderKey]interface{}{
"kid": keyID, "kid": keyID,
"url": url, "url": u,
}, },
EmbedJWK: false, EmbedJWK: false,
}, },
@ -91,8 +91,8 @@ func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string
return parsedJWS, nil return parsedJWS, nil
} }
func createRawEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string) ([]byte, error) { func createRawEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID, u string) ([]byte, error) {
jws, err := createEABJWS(jwk, hmacKey, keyID, url) jws, err := createEABJWS(jwk, hmacKey, keyID, u)
if err != nil { if err != nil {
return nil, err return nil, err
} }