From 1cfbd19b459cd7202f6953323d69507da88b346c Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:37:17 -0500 Subject: [PATCH] refactor: use else case, not opposite if --- silverback/_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silverback/_cli.py b/silverback/_cli.py index b9047469..d5b14aa1 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -561,7 +561,7 @@ def create_payment_stream( if token is None: raise click.UsageError(f"Token not found in accepted tokens: {accepted_tokens}.") - if not token: + else: token = accepted_tokens.get( click.prompt( "Select one of the following tokens to fund your stream with",