From: Yu Watanabe Date: Fri, 20 Nov 2020 10:47:11 +0000 (+0900) Subject: tools: drop unnecessary "else" after for loop X-Git-Tag: v247~31^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45752a24954bd4c65d347f4170142cf431713689;p=thirdparty%2Fsystemd.git tools: drop unnecessary "else" after for loop --- diff --git a/tools/update-dbus-docs.py b/tools/update-dbus-docs.py index cb8eda9cc56..8fea0b8a007 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 = []