diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-31 12:27:13 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-31 16:04:18 +0300 |
commit | 4fc2be490cd075d08ef8532f954424051fe49300 (patch) | |
tree | 5ce749e377ed6e911daed3909d55ffbd96a2b248 | |
parent | c61858a9978504c645f09de60daf4f9786c2220e (diff) | |
download | rneovim-4fc2be490cd075d08ef8532f954424051fe49300.tar.gz rneovim-4fc2be490cd075d08ef8532f954424051fe49300.tar.bz2 rneovim-4fc2be490cd075d08ef8532f954424051fe49300.zip |
clint: Do not report zero errors
-rwxr-xr-x | src/clint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clint.py b/src/clint.py index 61c53d128e..5174521fb8 100755 --- a/src/clint.py +++ b/src/clint.py @@ -571,7 +571,8 @@ class _CppLintState(object): for category, count in self.errors_by_category.items(): sys.stderr.write('Category \'%s\' errors found: %d\n' % (category, count)) - sys.stderr.write('Total errors found: %d\n' % self.error_count) + if self.error_count: + sys.stderr.write('Total errors found: %d\n' % self.error_count) def SuppressErrorsFrom(self, fname): """Open file and read a list of suppressed errors from it""" |