From e435f5b431ced3790d477ca44542cc06aa80a068 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 7 Dec 2019 20:47:20 +0100 Subject: do not throw exception when receiving zero-length refund list --- src/wallet-impl/pay.ts | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/wallet-impl/pay.ts b/src/wallet-impl/pay.ts index c39feeec3..7f9e90327 100644 --- a/src/wallet-impl/pay.ts +++ b/src/wallet-impl/pay.ts @@ -1063,11 +1063,6 @@ async function acceptRefundResponse( ): Promise { const refundPermissions = refundResponse.refund_permissions; - if (!refundPermissions.length) { - console.warn("got empty refund list"); - throw Error("empty refund"); - } - let numNewRefunds = 0; await runWithWriteTransaction(ws.db, [Stores.purchases], async tx => { -- cgit v1.2.3