Skip to content

Commit

Permalink
Use elif.
Browse files Browse the repository at this point in the history
Co-authored-by: Maxwell G <[email protected]>
  • Loading branch information
felixfontein and gotmax23 authored Oct 7, 2024
1 parent e1f9a61 commit 5fe6065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/antsibull/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def _get_removal_entry( # noqa: C901, pylint:disable=too-many-branches
f">`__ for more details{link}."
)

if removal.reason == "considered-unmaintained":
elif removal.reason == "considered-unmaintained":
sentences.append(
f"The ``{collection}`` collection is considered unmaintained"
f" and will be removed from Ansible {removal.major_version}"
Expand All @@ -555,7 +555,7 @@ def _get_removal_entry( # noqa: C901, pylint:disable=too-many-branches
f">`__ for more details, including for how this can be cancelled{link}."
)

if removal.reason == "renamed":
elif removal.reason == "renamed":
sentences.append(
f"The collection ``{collection}`` was renamed to ``{removal.new_name}``."
)
Expand Down Expand Up @@ -583,7 +583,7 @@ def _get_removal_entry( # noqa: C901, pylint:disable=too-many-branches
f"Please update your FQCNs from ``{collection}`` to ``{removal.new_name}``{link}."
)

if removal.reason == "guidelines-violation":
elif removal.reason == "guidelines-violation":
sentences.append(
f"The {collection} collection will be removed from Ansible {removal.major_version}"
" due to violations of the Ansible inclusion requirements."
Expand All @@ -598,7 +598,7 @@ def _get_removal_entry( # noqa: C901, pylint:disable=too-many-branches
f">`__ for more details, including for how this can be cancelled{link}."
)

if removal.reason == "other":
elif removal.reason == "other":
sentences.append(
f"The {collection} collection will be removed from Ansible {removal.major_version}."
)
Expand Down

0 comments on commit 5fe6065

Please sign in to comment.