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

CHORE: linting (#2098)

This commit is contained in:
Tom Limoncelli
2023-02-27 20:28:17 -05:00
committed by GitHub
parent 4eab96226c
commit 169d7c8062
9 changed files with 35 additions and 31 deletions

View File

@@ -548,7 +548,7 @@ func processSplitHorizonDomains(config *models.DNSConfig) error {
func checkAutoDNSSEC(dc *models.DomainConfig) (errs []error) {
if dc.AutoDNSSEC == "on" {
for providerName, _ := range dc.DNSProviderNames {
for providerName := range dc.DNSProviderNames {
if dc.RegistrarName != providerName {
errs = append(errs, fmt.Errorf("AutoDNSSEC is enabled, but DNS provider %s does not match registrar %s", providerName, dc.RegistrarName))
}