Skip to content

Commit 722c6b4

Browse files
committed
fix: print nothing if output is empty (fix #9)
1 parent e94ee53 commit 722c6b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/runner.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ class CommitLintRunner extends CommandRunner {
7676
(info, result) => info + result,
7777
);
7878
final output = format(report: report);
79-
stderr.writeln(output);
79+
if (output.isNotEmpty) {
80+
stderr.writeln(output);
81+
}
8082
if (!report.valid) {
8183
exit(1);
8284
}

0 commit comments

Comments
 (0)