Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0149fa9

Browse files
committed
Merge pull request #8158 from adobe/randy/fix-exclusion-bug
Fix error when checking for exclusions
2 parents 7ecf9e0 + 239d003 commit 0149fa9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/extensions/default/JavaScriptCodeHints/ScopeManager.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,7 @@ define(function (require, exports, module) {
214214
}
215215

216216
var excludes = preferences.getExcludedFiles();
217-
if (!excludes) {
218-
return false;
219-
}
220-
221-
if (excludes.test(file.name)) {
217+
if (excludes && excludes.test(file.name)) {
222218
return true;
223219
}
224220

0 commit comments

Comments
 (0)