mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
tools: drop unnecessary "else" after for loop
This commit is contained in:
@@ -125,8 +125,7 @@ def document_has_elem_with_text(document, elem, item_repr):
|
||||
for loc in document.findall(predicate):
|
||||
if loc.text == item_repr:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return False
|
||||
|
||||
def check_documented(document, declarations, stats):
|
||||
missing = []
|
||||
|
||||
Reference in New Issue
Block a user