You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2018/10/05 18:00:36 UTC
[mesos] 01/02: Removed output in mesos-style.py when linting goes
well.
This is an automated email from the ASF dual-hosted git repository.
tillt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit b290cbab66b466a3a529a4f9404cf137a9285da3
Author: Armand Grillet <ag...@mesosphere.io>
AuthorDate: Fri Oct 5 20:00:14 2018 +0200
Removed output in mesos-style.py when linting goes well.
Review: https://reviews.apache.org/r/68937/
---
support/mesos-style.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/support/mesos-style.py b/support/mesos-style.py
index 4fea672..11d5f96 100755
--- a/support/mesos-style.py
+++ b/support/mesos-style.py
@@ -221,12 +221,12 @@ class LinterBase():
lint_errors = self.run_lint(list(filtered_candidates_set))
total_errors = license_errors + encoding_errors + lint_errors
- sys.stderr.write('Total errors found: {num_errors}\n'.format(
- num_errors=total_errors))
+ if total_errors > 0:
+ sys.stderr.write('Total errors found: {num_errors}\n'.format(
+ num_errors=total_errors))
return total_errors
- print("No {linter} files to lint".format(linter=self.linter_type))
return 0