From e44e0a285039f273d64c741cd40240e5bc9e95b0 Mon Sep 17 00:00:00 2001 From: hewenyang Date: Sat, 12 May 2018 13:12:13 +0800 Subject: [PATCH] Add type cast --- src/daemon/testData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/testData.ts b/src/daemon/testData.ts index 9e73889..9dc6af2 100644 --- a/src/daemon/testData.ts +++ b/src/daemon/testData.ts @@ -81,7 +81,7 @@ export async function readRulesFile(dataName: string): Promise { const dataPath = pathLib.join(Cfg.testDataDirectory, dataName); let fileContent = await tryReadFile(pathLib.join(dataPath, 'data.yml')); if (fileContent != null) { - return parseYamlContent(yaml.safeLoad(fileContent), dataName); + return parseYamlContent(yaml.safeLoad(fileContent) as UserConfigFile, dataName); } else { // No data.yml let spj: Executable = null; for (const lang of languages) {