mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 17:36:59 +08:00
Fixed creation of candidateNode in operators to include file metadata
This commit is contained in:
@@ -72,11 +72,7 @@ func deleteFromMap(candidate *CandidateNode, childPath interface{}) {
|
||||
key := contents[index]
|
||||
value := contents[index+1]
|
||||
|
||||
childCandidate := &CandidateNode{
|
||||
Node: value,
|
||||
Document: candidate.Document,
|
||||
Path: candidate.CreateChildPath(key.Value),
|
||||
}
|
||||
childCandidate := candidate.CreateChild(key.Value, value)
|
||||
|
||||
shouldDelete := key.Value == childPath
|
||||
|
||||
|
||||
Reference in New Issue
Block a user