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

Commit c7252f8

Browse files
joschaadidahiya
authored andcommitted
Silence tslint on no output (#3121)
1 parent 0461fe0 commit c7252f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ async function runWorker(options: Options, logger: Logger): Promise<Status> {
150150
}
151151

152152
const { output, errorCount } = await runLinter(options, logger);
153-
logger.log(output);
153+
if (output && output.trim()) {
154+
logger.log(output);
155+
}
154156
return options.force || errorCount === 0 ? Status.Ok : Status.LintError;
155157
}
156158

0 commit comments

Comments
 (0)