mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
Fixed to_entries and del bug #1886
This commit is contained in:
@@ -61,7 +61,7 @@ func deleteFromMap(node *CandidateNode, childPath interface{}) {
|
||||
|
||||
shouldDelete := key.Value == childPath
|
||||
|
||||
log.Debugf("shouldDelete %v ? %v", NodeToString(value), shouldDelete)
|
||||
log.Debugf("shouldDelete %v? %v == %v = %v", NodeToString(value), key.Value, childPath, shouldDelete)
|
||||
|
||||
if !shouldDelete {
|
||||
newContents = append(newContents, key, value)
|
||||
|
||||
Reference in New Issue
Block a user