From f682e95b8fc37fb083368a3fa2f4cabb2f08624f Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 27 Dec 2022 19:41:31 +0100 Subject: [PATCH] refactor --- cashu/wallet/cli.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index ce1a18e..aaddcd7 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -333,11 +333,9 @@ async def receive(ctx, token: str, lock: str): ) # if it was not an lnbits link - if not url: - url = ( - input(f"Enter mint URL (press enter for default {MINT_URL}): ") - or MINT_URL - ) + url = url or ( + input(f"Enter mint URL (press enter for default {MINT_URL}): ") or MINT_URL + ) # and add url and keyset id to token token_object: TokenJson = await wallet._make_token(proofs, include_mints=False)