mirror of
https://github.com/mikefarah/yq.git
synced 2025-03-15 16:37:46 +00:00
Removed TraversePrefs
This commit is contained in:
parent
9e9e15df73
commit
b10a9ccfc6
@ -53,12 +53,7 @@ func traverse(d *dataTreeNavigator, matchingNode *CandidateNode, operation *Oper
|
|||||||
switch value.Kind {
|
switch value.Kind {
|
||||||
case yaml.MappingNode:
|
case yaml.MappingNode:
|
||||||
log.Debug("its a map with %v entries", len(value.Content)/2)
|
log.Debug("its a map with %v entries", len(value.Content)/2)
|
||||||
followAlias := true
|
return traverseMap(matchingNode, operation.StringValue, true, false)
|
||||||
|
|
||||||
if operation.Preferences != nil {
|
|
||||||
followAlias = !operation.Preferences.(*TraversePreferences).DontFollowAlias
|
|
||||||
}
|
|
||||||
return traverseMap(matchingNode, operation.StringValue, followAlias, false)
|
|
||||||
|
|
||||||
case yaml.SequenceNode:
|
case yaml.SequenceNode:
|
||||||
log.Debug("its a sequence of %v things!", len(value.Content))
|
log.Debug("its a sequence of %v things!", len(value.Content))
|
||||||
|
Loading…
Reference in New Issue
Block a user