1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

MAINT: Linting (#1380)

* MAINT: Linting

* Unsort for a smaller diff

* fix hexonet error checking
This commit is contained in:
Tom Limoncelli
2022-01-27 15:58:56 -05:00
committed by GitHub
parent c8438b3483
commit dcb0e58b99
14 changed files with 48 additions and 52 deletions

View File

@@ -21,7 +21,7 @@ func (n *HXClient) EnsureDomainExists(domain string) error {
}
} else if code == 531 {
return n.GetHXApiError("Not authorized to manage dnszone", domain, r)
} else if r.IsError() || r.IsError() {
} else if r.IsError() || r.IsTmpError() {
return n.GetHXApiError("Error while checking status of dnszone", domain, r)
}
return nil