Don't print "Linting your app" unless there are linting messages to report

This commit is contained in:
Slava Kim
2015-06-26 11:17:53 -07:00
parent 7d9c58f7ff
commit 435d92add4

View File

@@ -703,8 +703,11 @@ _.extend(AppRunner.prototype, {
var warnings = new buildmessage._MessageSet(bundleResult.warnings);
warnings.merge(self.projectContext._getLintingMessagesForLocalPackages());
runLog.log(
'Linting your app.\n\n' + warnings.formatMessages(), { arrow: true })
if (warnings.hasMessages()) {
runLog.log(
'Linting your app.\n\n' + warnings.formatMessages(),
{ arrow: true });
}
}
// Start watching for changes for files if requested. There's no