You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2021/01/25 09:09:00 UTC
[incubator-nlpcraft] branch NLPCRAFT-228 updated: Minor fix.
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-228
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-228 by this push:
new b28cb3f Minor fix.
b28cb3f is described below
commit b28cb3ffefed0c494f88d79c3b28d2b2c25602bc
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Mon Jan 25 12:08:50 2021 +0300
Minor fix.
---
.../apache/nlpcraft/common/extcfg/NCExternalConfigManager.scala | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/extcfg/NCExternalConfigManager.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/extcfg/NCExternalConfigManager.scala
index 7b74fa6..3fe9379 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/extcfg/NCExternalConfigManager.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/extcfg/NCExternalConfigManager.scala
@@ -189,7 +189,7 @@ object NCExternalConfigManager extends NCService {
* @return
*/
private def mkFile(typ: NCResourceType, res: String): File = {
- val file = mkExtFile(typ, res)
+ val file = new File(Config.dir, getResourcePath(typ, res))
if (!file.exists() || !file.canRead)
throw new NCE(
@@ -371,13 +371,6 @@ object NCExternalConfigManager extends NCService {
/**
*
- * @param typ
- * @param res
- */
- private def mkExtFile(typ: NCResourceType, res: String): File = new File(Config.dir, getResourcePath(typ, res))
-
- /**
- *
* @param d
*/
@throws[NCE]