zuul.gerrit.Gerrit.isMerged should not return None

* zuul/trigger/gerrit.py(Gerrit.isMerged): Make sure to return False
if we fell through all the conditionals, rather than defaulting to
None. This should have no current impact since all comparisons to
the returned value elsewhere are boolean and not "is None" or
similar.

Change-Id: I05360833f1e5b35fbfb1894dadcb46e82ff78a11
This commit is contained in:
Jeremy Stanley 2014-03-19 02:04:18 +00:00
parent 9f8a6e6a22
commit f31175db78
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ class Gerrit(object):
self.log.debug("Change %s status: %s" % (change, status))
if status == 'MERGED':
return True
return False
def canMerge(self, change, allow_needs):
if not change.number: