mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Fixed "all" error message #1845
This commit is contained in:
parent
eb4278784a
commit
dea8f95670
@ -88,7 +88,7 @@ func allOperator(d *dataTreeNavigator, context Context, expressionNode *Expressi
|
|||||||
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
|
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
|
||||||
candidate := el.Value.(*CandidateNode)
|
candidate := el.Value.(*CandidateNode)
|
||||||
if candidate.Kind != SequenceNode {
|
if candidate.Kind != SequenceNode {
|
||||||
return Context{}, fmt.Errorf("any only supports arrays, was %v", candidate.Tag)
|
return Context{}, fmt.Errorf("all only supports arrays, was %v", candidate.Tag)
|
||||||
}
|
}
|
||||||
booleanResult, err := findBoolean(false, d, context, expressionNode.RHS, candidate)
|
booleanResult, err := findBoolean(false, d, context, expressionNode.RHS, candidate)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user