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

fix unused params in: providers/doh

This commit is contained in:
Tom Limoncelli
2024-03-04 10:25:55 -05:00
parent 4059ef1572
commit a2b0970dee
2 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,6 @@ func (c *dohProvider) getNameservers(domain string) ([]string, error) {
return ns, nil
}
func (c *dohProvider) updateNameservers(ns []string, domain string) error {
func (c *dohProvider) updateNameservers(domain string) error {
return fmt.Errorf("DNS-over-HTTPS 'Registrar' is read only, changes must be applied to %s manually", domain)
}

View File

@ -54,7 +54,7 @@ func (c *dohProvider) GetRegistrarCorrections(dc *models.DomainConfig) ([]*model
{
Msg: fmt.Sprintf("Update nameservers %s -> %s", foundNameservers, expectedNameservers),
F: func() error {
return c.updateNameservers(expected, dc.Name)
return c.updateNameservers(dc.Name)
},
},
}, nil