mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 02:03:24 +08:00
Fixed recursive decent on empty objects/arrays
This commit is contained in:
@@ -26,7 +26,7 @@ func recursiveDecent(d *dataTreeNavigator, results *list.List, matchMap *list.Li
|
||||
log.Debugf("Recursive Decent, added %v", NodeToString(candidate))
|
||||
results.PushBack(candidate)
|
||||
|
||||
if candidate.Node.Kind != yaml.AliasNode {
|
||||
if candidate.Node.Kind != yaml.AliasNode && len(candidate.Node.Content) > 0 {
|
||||
|
||||
children, err := Splat(d, nodeToMap(candidate))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user