do not throw exception when receiving zero-length refund list

This commit is contained in:
Florian Dold 2019-12-07 20:47:20 +01:00
parent 27e42111e7
commit e435f5b431
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1063,11 +1063,6 @@ async function acceptRefundResponse(
): Promise<void> {
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 => {