simplify code

This commit is contained in:
callebtc
2022-12-27 18:18:31 +01:00
parent cd44a27f1f
commit e230b873fe

View File

@@ -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: