This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new a01eecf Update NCCli.scala
a01eecf is described below
commit a01eecf8f80a0085f858a219e76678ac03e67786
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Nov 20 12:31:14 2020 -0800
Update NCCli.scala
---
.../main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
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 3bc5403..3b1d9d5 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
@@ -2254,9 +2254,7 @@ object NCCli extends App {
* @param repl Whether or not executing from REPL.
*/
private def cmdNano(cmd: Command, args: Seq[Argument], repl: Boolean):
Unit = {
- if (args.isEmpty)
- throw NotEnoughArguments(cmd)
- else if (args.size > 1)
+ if (args.size > 1)
throw TooManyArguments(cmd)
Commands.nano(term,