From e230b873fe5317ec4a4f2d4789c78496538336d7 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 27 Dec 2022 18:18:31 +0100 Subject: [PATCH] simplify code --- cashu/wallet/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index c6a0de5..ca1d064 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -334,9 +334,7 @@ async def receive(ctx, token: str, lock: str): # if it was not an lnbits link if url is None: - url = input(f"Enter mint URL (default: {MINT_URL}: ") - if url == "": - url = MINT_URL + url = input(f"Enter mint URL (default: {MINT_URL}: ") or MINT_URL # and add url and keyset id to token from link extraction above if url: