Commit 482cae3f authored by Makoto Shimazu's avatar Makoto Shimazu Committed by Commit Bot

check-webkit-style doesn't fail when all files are skipped.

Currently 'git cl uplaod' fails when all files are skipped (e.g. fixing
LayoutTest). This patch makes it pass.

Bug: none
Change-Id: Ib028d39ed63e0cba21918cb565a5c264ad047da7
Reviewed-on: https://chromium-review.googlesource.com/923782Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537270}
parent 4c591461
......@@ -158,5 +158,5 @@ class CheckWebKitStyle(object):
delete_only_file_count = file_reader.delete_only_file_count
_log.info('Total errors found: %d in %d files', error_count, file_count)
# We fail when style errors are found or there are no checked files.
return error_count > 0 or (file_count == 0 and delete_only_file_count == 0)
# We fail when style errors are found.
return error_count > 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment