websupport: simplify errors (#1924)

This commit is contained in:
Ludovic Fernandez 2023-05-27 12:19:14 +02:00 committed by GitHub
parent 8d8a3c1ccd
commit 8a7fb25edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,12 +133,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
return nil return nil
} }
err = internal.ParseError(resp) return fmt.Errorf("websupport: %w", internal.ParseError(resp))
if err != nil {
return fmt.Errorf("websupport: %w", err)
}
return nil
} }
// CleanUp removes the TXT record matching the specified parameters. // CleanUp removes the TXT record matching the specified parameters.
@ -172,12 +167,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
return nil return nil
} }
err = internal.ParseError(resp) return fmt.Errorf("websupport: %w", internal.ParseError(resp))
if err != nil {
return fmt.Errorf("websupport: %w", err)
}
return nil
} }
// Timeout returns the timeout and interval to use when checking for DNS propagation. // Timeout returns the timeout and interval to use when checking for DNS propagation.