Skip to content

Commit

Permalink
refactor: use else case, not opposite if
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Nov 20, 2024
1 parent eed6e2d commit 1cfbd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1cfbd19

Please sign in to comment.