Fix linting issue

This commit is contained in:
Herman Slatman 2021-12-22 11:58:00 +01:00
parent a68208a3ba
commit 07addd0cac
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -43,7 +43,7 @@ func NewACMEClient(endpoint string, contact []string, opts ...ClientOption) (*AC
},
dirLoc: endpoint,
}
req, err := http.NewRequest("GET", endpoint, nil)
req, err := http.NewRequest("GET", endpoint, http.NoBody)
if err != nil {
return nil, errors.Wrapf(err, "creating GET request %s failed", endpoint)
}
@ -102,7 +102,7 @@ func (c *ACMEClient) GetDirectory() (*acmeAPI.Directory, error) {
// GetNonce makes a nonce request to the ACME api and returns an
// ACME directory object.
func (c *ACMEClient) GetNonce() (string, error) {
req, err := http.NewRequest("GET", c.dir.NewNonce, nil)
req, err := http.NewRequest("GET", c.dir.NewNonce, http.NoBody)
if err != nil {
return "", errors.Wrapf(err, "creating GET request %s failed", c.dir.NewNonce)
}