Skip to content

Commit 1322e30

Browse files
committed
Fix the plugin not finishing in some cases
Fixes #172
1 parent 259ce5c commit 1322e30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tasks/eslint.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module.exports = grunt => {
2525

2626
if (this.filesSrc.length === 0) {
2727
grunt.log.writeln(chalk.magenta('Could not find any files to validate'));
28-
return true;
28+
done(true);
29+
return;
2930
}
3031

3132
const engine = new ESLint(options);
@@ -34,7 +35,8 @@ module.exports = grunt => {
3435

3536
if (!formatter) {
3637
grunt.warn(`Could not find formatter ${format}`);
37-
return false;
38+
done(false);
39+
return;
3840
}
3941

4042
let results = await engine.lintFiles(this.filesSrc);

0 commit comments

Comments
 (0)