diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/tslint/lib/ruleLoader.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/tslint/lib/ruleLoader.js')
-rw-r--r-- | node_modules/tslint/lib/ruleLoader.js | 3 |
1 files changed, 1 insertions, 2 deletions
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); |