From e7ba6504143d93c1f0373b8e57e1583ee2292345 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sat, 2 Nov 2024 17:55:33 +0100 Subject: [PATCH] Avoid unnecessary "elif" after "continue" Address pylint's no-else-continue. --- pm-helper | 4 ++-- ubuntutools/pullpkg.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pm-helper b/pm-helper index 6c1808c..d37e671 100755 --- a/pm-helper +++ b/pm-helper @@ -47,13 +47,13 @@ def claim_excuses_bug(launchpad, bug, package): if task.bug_target_name == f"{package} ({series})": our_task = task break - elif task.bug_target_name == f"{package} (Ubuntu)": + if task.bug_target_name == f"{package} (Ubuntu)": our_task = task if our_task.assignee == launchpad.me: print("Bug already assigned to you.") return True - elif our_task.assignee: + if our_task.assignee: print(f"Currently assigned to {our_task.assignee.name}") print("""Do you want to claim this bug? [yN] """, end="") diff --git a/ubuntutools/pullpkg.py b/ubuntutools/pullpkg.py index c5873a9..9331e5c 100644 --- a/ubuntutools/pullpkg.py +++ b/ubuntutools/pullpkg.py @@ -453,7 +453,7 @@ class PullPkg: if key.startswith("vcs-"): if key == "vcs-browser": continue - elif key == "vcs-git": + if key == "vcs-git": vcs = "Git" elif key == "vcs-bzr": vcs = "Bazaar"