Skip to content

Commit

Permalink
More robust project directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
azawawi committed Feb 17, 2016
1 parent f2c0348 commit 5a0807a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/syntax-check-linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Perl6Linter {
return dir.contains(textEditor.getPath() )
}
)
projectDir = projectDir.path ? projectDir.path : null;
projectDir = projectDir && projectDir.path ? projectDir.path : null;

options = {
cwd: projectDir,
Expand Down

0 comments on commit 5a0807a

Please sign in to comment.