Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
fix: check if contain results (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Sep 26, 2019
1 parent 16e9ccf commit 7d1d1fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Linter.js
Expand Up @@ -66,6 +66,12 @@ export default class Linter {
}

const results = this.parseResults(res);

// Do not analyze if there are no results or eslint config
if (!results) {
return;
}

const messages = options.formatter(results);

this.reportOutput(results, messages);
Expand Down

0 comments on commit 7d1d1fe

Please sign in to comment.