mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08: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 {
|
||||
case yaml.MappingNode:
|
||||
log.Debug("its a map with %v entries", len(value.Content)/2)
|
||||
followAlias := true
|
||||
|
||||
if operation.Preferences != nil {
|
||||
followAlias = !operation.Preferences.(*TraversePreferences).DontFollowAlias
|
||||
}
|
||||
return traverseMap(matchingNode, operation.StringValue, followAlias, false)
|
||||
return traverseMap(matchingNode, operation.StringValue, true, false)
|
||||
|
||||
case yaml.SequenceNode:
|
||||
log.Debug("its a sequence of %v things!", len(value.Content))
|
||||
|
Loading…
x
Reference in New Issue
Block a user