From f33465c51410690e68d0d542b89334ff596ee0ab Mon Sep 17 00:00:00 2001 From: James Whitney Date: Fri, 9 Oct 2015 15:58:42 +1100 Subject: [PATCH] Remove empty line from reporter In the event that there are no issues with the linting, the `output` from the reporter will be an empty String. This PR silences that empty String from being logged. ### Before ![before](http://i.imgur.com/pRfRLQg.png) ### After ![after](http://i.imgur.com/y7Mu6Id.png) --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0827449..f6b1f64 100644 --- a/index.js +++ b/index.js @@ -116,8 +116,9 @@ cssLintPlugin.reporter = function(customReporter) { function(cb) { if (builtInReporter) { output += reporter.endFormat(); - - gutil.log(output); + if (output) { + gutil.log(output); + } } return cb();