Skip to content

Commit

Permalink
acme-dns: use if not else if
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Jul 2, 2018
1 parent e5fc7bf commit f5e122f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/dns/acmedns/acmedns.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ func (d *DNSProvider) Present(domain, _, keyAuth string) error {
// Errors other than goacmeDNS.ErrDomainNotFound are unexpected.
if err != nil && err != goacmedns.ErrDomainNotFound {
return err
} else if err == goacmedns.ErrDomainNotFound {
}
if err == goacmedns.ErrDomainNotFound {
// The account did not exist. Create a new one and return an error
// indicating the required one-time manual CNAME setup.
return d.register(domain, fqdn)
Expand Down

0 comments on commit f5e122f

Please sign in to comment.