Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from willowtreeapps/bug/keep-ast-on-error
Browse files Browse the repository at this point in the history
Don't throw away the entire AST just because of syntax error
  • Loading branch information
vannuysm authored Sep 8, 2017
2 parents afd3981 + bb405f7 commit ddac102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function parse(text, filename) {

return {
messages,
ast: parseResult && parseResult.errors.length === 0 ? parseResult.ast : null
ast: parseResult && parseResult.ast ? parseResult.ast : null
};
}

Expand Down

0 comments on commit ddac102

Please sign in to comment.