Skip to content

Commit

Permalink
fix(@angular-devkit/schematics): upgrade refactoring with tslint emit…
Browse files Browse the repository at this point in the history
…s too much whitespace

Fixes #12653
  • Loading branch information
alan-agius4 authored and kyliau committed Oct 31, 2018
1 parent aaec9de commit 052904d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ export default function(): TaskExecutor<TslintFixTaskOptions> {
}
const formatter = new Formatter();

const output = formatter.format(result.failures, result.fixes);
// Certain tslint formatters outputs '\n' when there are no failures.
// This will bloat the console when having schematics running refactor tasks.
// see https://github.com/palantir/tslint/issues/4244
const output = (formatter.format(result.failures, result.fixes) || '').trim();
if (output) {
context.logger.info(output);
}
Expand Down

0 comments on commit 052904d

Please sign in to comment.