Commit 51d2ef45 authored by nednguyen's avatar nednguyen Committed by Commit bot

Remove the presubmit check that counts the number of owners

https: //codereview.chromium.org/2877553003/)
Review-Url: https://codereview.chromium.org/2881603002
Cr-Commit-Position: refs/heads/master@{#471079}
parent 6a960f89
...@@ -17,15 +17,6 @@ def _CheckOwnershipForContribSubDir(sub_dir, input_api, output_api): ...@@ -17,15 +17,6 @@ def _CheckOwnershipForContribSubDir(sub_dir, input_api, output_api):
if not input_api.os_path.isfile(owner_file): if not input_api.os_path.isfile(owner_file):
results.append(output_api.PresubmitError( results.append(output_api.PresubmitError(
'%s must have an OWNERS file' % sub_dir)) '%s must have an OWNERS file' % sub_dir))
else:
owners = []
with open(owner_file) as f:
for line in f:
if line.strip() and not line.strip().startswith('#'):
owners.append(line)
if len(owners) < 2:
results.append(output_api.PresubmitError(
'%s must have at least 2 owners' % owner_file))
return results return results
......
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