From 45752a24954bd4c65d347f4170142cf431713689 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 20 Nov 2020 19:47:11 +0900 Subject: [PATCH] tools: drop unnecessary "else" after for loop --- tools/update-dbus-docs.py | 3 +-- 1 file changed, 1 insertion(+), 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 = []