Fixed equals operator for top level node

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 8f5270cc63
commit 90ec05be54
3 changed files with 16 additions and 8 deletions
+1 -5
View File
@@ -32,11 +32,7 @@ func assignUpdateOperator(d *dataTreeNavigator, matchingNodes *list.List, pathNo
candidate.UpdateFrom(rhsCandidate)
}
}
// // if there was nothing given, perhaps we are creating a new yaml doc
// if matchingNodes.Len() == 0 {
// log.Debug("started with nothing, returning LHS, %v", lhs.Len())
// return lhs, nil
// }
return matchingNodes, nil
}