fix readPath is not defined

This commit is contained in:
Philipp Kunz 2017-08-02 13:16:07 +02:00
parent 42c6c1eec5
commit 64219f8f09
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ exports.fileTreeToObject = (dirPathArg, miniMatchFilter) => __awaiter(this, void
return plugins.path.join(dirPath, filePath); return plugins.path.join(dirPath, filePath);
} }
else { else {
return readPath; return filePath;
} }
})(); })();
let fileContentString = exports.toStringSync(readPath); let fileContentString = exports.toStringSync(readPath);

View File

@ -228,7 +228,7 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string
if (!plugins.path.isAbsolute(filePath)) { if (!plugins.path.isAbsolute(filePath)) {
return plugins.path.join(dirPath, filePath) return plugins.path.join(dirPath, filePath)
} else { } else {
return readPath return filePath
} }
})() })()
let fileContentString = toStringSync(readPath) let fileContentString = toStringSync(readPath)