mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
linting (#777)
This commit is contained in:
@ -144,6 +144,9 @@ func (api *api) get(action string, params interface{}) (json.RawMessage, error)
|
||||
|
||||
respData := &response{}
|
||||
err = json.Unmarshal(bodyString, &respData)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Yeah, netcup implemented an empty recordset as an error - don't ask.
|
||||
if action == "infoDnsRecords" && respData.StatusCode == 5029 {
|
||||
|
Reference in New Issue
Block a user