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:
@ -35,7 +35,7 @@ func nativeToRecords(n resourceRecord, origin string) (rcs []*models.RecordConfi
|
||||
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.
|
||||
// deSEC requires one resourceRecord for each label:key tuple, therefore we
|
||||
// might collapse many RecordConfig into one resourceRecord.
|
||||
|
@ -198,7 +198,7 @@ func (c *desecProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
|
||||
}
|
||||
} else {
|
||||
//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 {
|
||||
panic("we got more than one resource record to create / modify")
|
||||
}
|
||||
|
Reference in New Issue
Block a user