This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-283
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-283 by this push:
     new 95d7205  WIP.
95d7205 is described below

commit 95d7205d1f8ac325dc80b04d5867ea56776ef3ad
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Mar 25 19:27:26 2021 +0300

    WIP.
---
 .../apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
index faa6b38..f16ef03 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
@@ -386,7 +386,7 @@ trait NCIdlCompilerBase {
     def parseEqNeqExpr(eq: TN, neq: TN)(implicit ctx: PRC): SI = (_, stack: S, 
_) ⇒ {
         val (x1, x2) = pop2()(stack, ctx)
 
-        def doEq(op: String, v1: Object, v2: Object): Boolean = {
+        def doEq(v1: Object, v2: Object): Boolean = {
             if (v1 eq v2) true
             else if (v1 == null && v2 == null) true
             else if ((v1 == null && v2 != null) || (v1 != null && v2 == null)) 
false
@@ -405,11 +405,11 @@ trait NCIdlCompilerBase {
 
             val f =
                 if (eq != null)
-                    doEq("==", v1, v2)
+                    doEq(v1, v2)
                 else {
                     assert(neq != null)
 
-                    !doEq("!='", v1, v2)
+                    !doEq(v1, v2)
                 }
 
             Z(f, n)

Reply via email to