Avoid unnecessary "elif" after "continue"

Address pylint's no-else-continue.
This commit is contained in:
Benjamin Drung 2024-11-02 17:55:33 +01:00
parent 3bc802a209
commit e7ba650414
2 changed files with 3 additions and 3 deletions

View File

@ -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="")

View File

@ -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"