From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/tslint/lib/ruleLoader.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'node_modules/tslint/lib/ruleLoader.js') diff --git a/node_modules/tslint/lib/ruleLoader.js b/node_modules/tslint/lib/ruleLoader.js index 1debe3931..acc7a3881 100644 --- a/node_modules/tslint/lib/ruleLoader.js +++ b/node_modules/tslint/lib/ruleLoader.js @@ -101,7 +101,6 @@ function loadRule(directory, ruleName) { return "not-found"; } function loadCachedRule(directory, ruleName, isCustomPath) { - if (isCustomPath === void 0) { isCustomPath = false; } // use cached value if available var fullPath = path.join(directory, ruleName); var cachedRule = cachedRules.get(fullPath); @@ -113,7 +112,7 @@ function loadCachedRule(directory, ruleName, isCustomPath) { if (isCustomPath) { absolutePath = configuration_1.getRelativePath(directory); if (absolutePath !== undefined && !fs.existsSync(absolutePath)) { - throw new Error("Could not find custom rule directory: " + directory); + throw new error_1.FatalError("Could not find custom rule directory: " + directory); } } var Rule = absolutePath === undefined ? "not-found" : loadRule(absolutePath, ruleName); -- cgit v1.2.3