You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/09/04 19:09:41 UTC

[incubator-nlpcraft] 02/02: Update NCBasicRestApi.scala

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

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

commit 9b58e6bd2dd7f49257c55df1811e17ace01e7dbf
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Fri Sep 4 12:09:27 2020 -0700

    Update NCBasicRestApi.scala
---
 .../src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index 4ce8cd5..1f42618 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -325,7 +325,7 @@ class NCBasicRestApi extends NCRestApi with LazyLogging with NCOpenCensusTrace w
     @throws[EmptyField]
     protected def checkLength(pairs: (String, Any)*): Unit = {
         pairs.foreach {
-            case (name, value: Option[String]) => checkLengthOpt(name, value)
+            case (name, value: Some[String]) => checkLengthOpt(name, value)
             case (name, value: String) => checkLength(name, value)
             case _ => assert(false)
         }