From 693694a9ebb8e74d0f3e3264039a79f02f58da80 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 25 Jul 2019 22:09:27 +0200 Subject: [PATCH] Improved modelPath composition --- src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.ts b/src/parser.ts index 169a731..26fb96b 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -54,7 +54,7 @@ export async function getModelContents(model: FactoryOptions["model"]) { export async function getModelFolderContents(model: string): Promise { try { - const modelPath = model + (!path.extname(model) && ".pass"); + const modelPath = `${model}${!path.extname(model) && ".pass" || ""}`; const modelFilesList = await readDir(modelPath); // No dot-starting files, manifest and signature