Fixed to_entries and del bug #1886

This commit is contained in:
Mike Farah
2023-11-30 14:04:54 +11:00
parent c11a53322b
commit 730f240d24
5 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -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)