Skip to content

Commit

Permalink
concise assert
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Mar 7, 2025
1 parent 65d4200 commit f1108df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cashu/wallet/v1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ async def melt_quote(
"""Checks whether the Lightning payment is internal."""
invoice_obj = bolt11.decode(payment_request)

assert amount_msat is not None or invoice_obj.amount_msat is not None, (
assert amount_msat or invoice_obj.amount_msat (
"No amount found. Either the invoice has an amount or the amount must be specified."
)

Expand Down

0 comments on commit f1108df

Please sign in to comment.