tools: drop unnecessary "else" after for loop
This commit is contained in:
parent
48b11b09ab
commit
45752a2495
|
@ -125,8 +125,7 @@ def document_has_elem_with_text(document, elem, item_repr):
|
||||||
for loc in document.findall(predicate):
|
for loc in document.findall(predicate):
|
||||||
if loc.text == item_repr:
|
if loc.text == item_repr:
|
||||||
return True
|
return True
|
||||||
else:
|
return False
|
||||||
return False
|
|
||||||
|
|
||||||
def check_documented(document, declarations, stats):
|
def check_documented(document, declarations, stats):
|
||||||
missing = []
|
missing = []
|
||||||
|
|
Loading…
Reference in New Issue