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

BUG: Fix all err scopes (#2160)

This commit is contained in:
Tom Limoncelli
2023-03-13 14:19:19 -04:00
committed by GitHub
parent f19225f8d4
commit 0491aadd36
19 changed files with 62 additions and 75 deletions

View File

@@ -169,11 +169,9 @@ func (c *desecProvider) GenerateDomainCorrections(dc *models.DomainConfig, exist
var keysToUpdate map[models.RecordKey][]string
if !diff2.EnableDiff2 {
// diff existing vs. current.
differ := diff.New(dc)
keysToUpdate, err = differ.ChangedGroups(existing)
keysToUpdate, err = (diff.New(dc)).ChangedGroups(existing)
} else {
differ := diff.NewCompat(dc)
keysToUpdate, err = differ.ChangedGroups(existing)
keysToUpdate, err = (diff.NewCompat(dc)).ChangedGroups(existing)
}
if err != nil {
return nil, err