git-push-review: Handle reviewers with no explicit config

This "or r" was accidentally removed in I5ad5b617.

Change-Id: If4419e204b54e619559ed2a2a25c508fc2367d35
This commit is contained in:
Dave Borowitz
2016-10-04 11:47:33 -04:00
parent 24406859c3
commit e7d88cd8f0

View File

@@ -72,7 +72,8 @@ def main(argv):
opts = collections.defaultdict(list)
is_hashtag = lambda x: x.startswith('#')
opts['r'].extend(
get_config('reviewer.' + r) for r in args.args if not is_hashtag(r))
(get_config('reviewer.' + r) or r)
for r in args.args if not is_hashtag(r))
opts['t'].extend(t[1:] for t in args.args if is_hashtag(t))
if args.topic:
opts['topic'].append(args.topic)