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

CODE: Fix simple staticcheck items (#1329)

This commit is contained in:
Tom Limoncelli
2021-12-14 16:28:37 -05:00
committed by GitHub
parent cc6638fb95
commit 02c5258396
6 changed files with 5 additions and 15 deletions

View File

@@ -131,9 +131,7 @@ func (a *azurednsProvider) GetNameservers(domain string) ([]*models.Nameserver,
var nss []string
if zone.ZoneProperties != nil {
for _, ns := range *zone.ZoneProperties.NameServers {
nss = append(nss, ns)
}
nss = append(nss, *zone.ZoneProperties.NameServers...)
}
return models.ToNameserversStripTD(nss)
}