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

CLEANUP: Fix many golint/staticcheck issues

This commit is contained in:
Tom Limoncelli
2022-01-25 10:33:48 -05:00
parent 1b83c219c5
commit de64f90c51
13 changed files with 43 additions and 46 deletions

View File

@@ -64,9 +64,7 @@ func (c *cscglobalProvider) getNameservers(domain string) ([]string, error) {
var dr domainRecord
json.Unmarshal(bodyString, &dr)
ns := []string{}
for _, nameserver := range dr.Nameserver {
ns = append(ns, nameserver)
}
ns = append(ns, dr.Nameserver...)
sort.Strings(ns)
return ns, nil
}