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

fix unused params in: providers/desec

This commit is contained in:
Tom Limoncelli
2024-03-04 10:25:19 -05:00
parent e98187e4d7
commit ad2fb7eb11
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func nativeToRecords(n resourceRecord, origin string) (rcs []*models.RecordConfi
return rcs return rcs
} }
func recordsToNative(rcs []*models.RecordConfig, origin string) []resourceRecord { func recordsToNative(rcs []*models.RecordConfig) []resourceRecord {
// Take a list of RecordConfig and return an equivalent list of resourceRecord. // Take a list of RecordConfig and return an equivalent list of resourceRecord.
// deSEC requires one resourceRecord for each label:key tuple, therefore we // deSEC requires one resourceRecord for each label:key tuple, therefore we
// might collapse many RecordConfig into one resourceRecord. // might collapse many RecordConfig into one resourceRecord.

View File

@ -198,7 +198,7 @@ func (c *desecProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
} }
} else { } else {
//it must be an update or create, both can be done with the same api call. //it must be an update or create, both can be done with the same api call.
ns := recordsToNative(desiredRecords[label], dc.Name) ns := recordsToNative(desiredRecords[label])
if len(ns) > 1 { if len(ns) > 1 {
panic("we got more than one resource record to create / modify") panic("we got more than one resource record to create / modify")
} }