fixup: one more Merge() where newest should be on the right

This commit is contained in:
Bryan Boreham
2019-10-20 10:29:14 +00:00
parent 4658568330
commit ce5d38d01e

View File

@@ -180,7 +180,7 @@ func (ret *joinResults) mapChild(from, to string) {
// Note it is not safe to mix calls to add() with addChild(), addChildAndChildren() or addUnmappedChild()
func (ret *joinResults) add(from string, m report.Node) {
if existing, ok := ret.nodes[m.ID]; ok {
m = m.Merge(existing)
m = existing.Merge(m)
}
ret.nodes[m.ID] = m
ret.mapChild(from, m.ID)