mirror of
https://github.com/go-acme/lego
synced 2026-03-14 22:45:48 +01:00
chore: minor changes
This commit is contained in:
parent
865ccf0205
commit
33fbb367fd
2 changed files with 1 additions and 5 deletions
|
|
@ -173,13 +173,11 @@ func (a *Core) GetDirectory() acme.Directory {
|
|||
func getDirectory(ctx context.Context, do *sender.Doer, caDirURL string) (acme.Directory, error) {
|
||||
var dir acme.Directory
|
||||
|
||||
resp, err := do.Get(ctx, caDirURL, &dir)
|
||||
_, err := do.Get(ctx, caDirURL, &dir)
|
||||
if err != nil {
|
||||
return dir, fmt.Errorf("get directory at '%s': %w", caDirURL, err)
|
||||
}
|
||||
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if dir.NewAccountURL == "" {
|
||||
return dir, errors.New("directory missing new registration URL")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ func (c *CertificateService) GetRenewalInfo(ctx context.Context, certID string)
|
|||
return nil, err
|
||||
}
|
||||
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if retry := resp.Header.Get("Retry-After"); retry != "" {
|
||||
info.RetryAfter, err = ParseRetryAfter(retry)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue