Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Silence tslint on no output (#3121)
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored and adidahiya committed Aug 14, 2017
1 parent 0461fe0 commit c7252f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ async function runWorker(options: Options, logger: Logger): Promise<Status> {
}

const { output, errorCount } = await runLinter(options, logger);
logger.log(output);
if (output && output.trim()) {
logger.log(output);
}
return options.force || errorCount === 0 ? Status.Ok : Status.LintError;
}

Expand Down

0 comments on commit c7252f8

Please sign in to comment.