Removed TraversePrefs

This commit is contained in:
Mike Farah 2020-12-28 10:29:43 +11:00
parent 9e9e15df73
commit b10a9ccfc6

View File

@ -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))