check_tags: use len() instead of list() since only count is of interest.
This commit is contained in:
parent
c1fde90c64
commit
7ddd4287e1
@ -96,8 +96,8 @@ by OBS on which this bot relies on.
|
||||
return None
|
||||
|
||||
xml = ET.parse(f)
|
||||
has_changes = list(xml.findall('./issues/issue'))
|
||||
if not has_changes:
|
||||
issues = len(xml.findall('./issues/issue'))
|
||||
if issues == 0:
|
||||
self.logger.debug("reject: diff contains no tags")
|
||||
return False
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user