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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user