This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-108
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-108 by this push:
new 387f099 Update NCCli.scala
387f099 is described below
commit 387f0997e1fbf2aff126ac26616d3ad6fb576fd5
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Oct 9 18:12:33 2020 -0700
Update NCCli.scala
---
.../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 7e514c2..2840ac6 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -1382,7 +1382,7 @@ object NCCli extends App {
if (!U.isValidJson(rawJson))
throw MalformedJson()
- if (!REST_PATHS.exists(_._1 == path))
+ if (!REST_PATHS.exists(_.path == path))
throw new IllegalArgumentException(s"Unknown REST path
$C'$path'$RST, type ${c("'help --cmd=rest'")} to get help.")
val endpoint = getRestEndpointFromBeacon