summaryrefslogtreecommitdiff
path: root/tools/update-dbus-docs.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-11-20 19:47:11 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-11-20 19:47:11 +0900
commit45752a24954bd4c65d347f4170142cf431713689 (patch)
tree6de31cc77529734651e12bbf780508028be7c769 /tools/update-dbus-docs.py
parent48b11b09ab78d3c87c24b3d64c43d17ebd1fab3d (diff)
downloadsystemd-45752a24954bd4c65d347f4170142cf431713689.tar.gz
tools: drop unnecessary "else" after for loop
Diffstat (limited to 'tools/update-dbus-docs.py')
-rwxr-xr-xtools/update-dbus-docs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/update-dbus-docs.py b/tools/update-dbus-docs.py
index cb8eda9cc5..8fea0b8a00 100755
--- a/tools/update-dbus-docs.py
+++ b/tools/update-dbus-docs.py
@@ -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 = []