Skip to content

Commit

Permalink
Use assert for better test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
monim67 committed Jul 2, 2023
1 parent 0906cc1 commit 315fe33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/poetry_bumpversion/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def on_terminate(
event_name (str): Event name.
dispatcher (EventDispatcher): Event dispatcher.
"""
if not isinstance(event, ConsoleTerminateEvent):
return
assert isinstance(event, ConsoleTerminateEvent)
try:
command = event.command
if command.name == "version" and command.argument("version"):
Expand Down

0 comments on commit 315fe33

Please sign in to comment.