Length compares to null instead of 0 issue #1427

This commit is contained in:
Mike Farah
2022-11-14 16:14:08 +11:00
parent 3e795d020d
commit ffc20f7e2c
6 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "gopkg.in/yaml.v3"
func equalsOperator(d *dataTreeNavigator, context Context, expressionNode *ExpressionNode) (Context, error) {
log.Debugf("-- equalsOperation")
return crossFunction(d, context.ReadOnlyClone(), expressionNode, isEquals(false), true)
return crossFunction(d, context, expressionNode, isEquals(false), true)
}
func isEquals(flip bool) func(d *dataTreeNavigator, context Context, lhs *CandidateNode, rhs *CandidateNode) (*CandidateNode, error) {