aboutsummaryrefslogtreecommitdiff
path: root/model/condition.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/condition.go')
-rw-r--r--model/condition.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/model/condition.go b/model/condition.go
index 0b558b4..82c964a 100644
--- a/model/condition.go
+++ b/model/condition.go
@@ -19,7 +19,7 @@ func (n *Node) Compare(op Operand, node *Node) bool {
if n.Type != ArrayNode {
return false
}
- for _, v := range n.arrayValue {
+ for _, v := range n.ArrayValue {
if v.Value() == node.Value() {
return true
}
@@ -34,9 +34,9 @@ func less(n1 *Node, n2 *Node) bool {
}
switch n1.Type {
case NumberNode:
- return n1.numberValue < n2.numberValue
+ return n1.NumberValue < n2.NumberValue
case StringNode:
- return n1.stringValue < n2.stringValue
+ return n1.StringValue < n2.StringValue
default:
return false
}