forked from TrueCloudLab/certificates
Fix linting issue
This commit is contained in:
parent
a68208a3ba
commit
07addd0cac
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ func NewACMEClient(endpoint string, contact []string, opts ...ClientOption) (*AC
|
||||||
},
|
},
|
||||||
dirLoc: endpoint,
|
dirLoc: endpoint,
|
||||||
}
|
}
|
||||||
req, err := http.NewRequest("GET", endpoint, nil)
|
req, err := http.NewRequest("GET", endpoint, http.NoBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "creating GET request %s failed", endpoint)
|
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
|
// GetNonce makes a nonce request to the ACME api and returns an
|
||||||
// ACME directory object.
|
// ACME directory object.
|
||||||
func (c *ACMEClient) GetNonce() (string, error) {
|
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 {
|
if err != nil {
|
||||||
return "", errors.Wrapf(err, "creating GET request %s failed", c.dir.NewNonce)
|
return "", errors.Wrapf(err, "creating GET request %s failed", c.dir.NewNonce)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue