mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Sort updates (cosmetic) (#772)
* Sort updates (cosmetic) * comments * More comments
This commit is contained in:
@ -247,6 +247,10 @@ func ChangesetLess(c Changeset, i, j int) bool {
|
||||
// elements, and sort on the result.
|
||||
}
|
||||
|
||||
func CorrectionLess(c []*models.Correction, i, j int) bool {
|
||||
return c[i].Msg < c[j].Msg
|
||||
}
|
||||
|
||||
func (d *differ) ChangedGroups(existing []*models.RecordConfig) map[models.RecordKey][]string {
|
||||
changedKeys := map[models.RecordKey][]string{}
|
||||
_, create, delete, modify := d.IncrementalDiff(existing)
|
||||
|
Reference in New Issue
Block a user