Fixed create yaml

This commit is contained in:
Mike Farah
2020-12-01 14:06:49 +11:00
parent c9229439f7
commit 08f579f4e3
6 changed files with 60 additions and 5 deletions
+5
View File
@@ -36,6 +36,11 @@ func AssignUpdateOperator(d *dataTreeNavigator, matchingNodes *list.List, pathNo
candidate.UpdateFrom(first.Value.(*CandidateNode))
}
}
// // 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
}