]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools: drop unnecessary "else" after for loop
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Nov 2020 10:47:11 +0000 (19:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Nov 2020 10:47:11 +0000 (19:47 +0900)
tools/update-dbus-docs.py

index cb8eda9cc5631e60033f06a958557189a0bba554..8fea0b8a0071113090dad09cfd362125c3d6d987 100755 (executable)
@@ -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 = []