aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-12-13 11:28:57 +0100
committerFlorian Dold <florian@dold.me>2021-12-13 11:28:57 +0100
commit2237058bcc8f589b51137fe5f8e3ed53039e25db (patch)
tree95cc9efe9e5f5b45d840207d61738b6ec8a174f1
parentc493a3069ec330b955efd8604cb9d8b76277c74e (diff)
style
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 652b26c1e..8a492bd6e 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -890,10 +890,7 @@ async function processWithdrawGroupImpl(
const r = await tx.reserves.indexes.byInitialWithdrawalGroupId.get(
withdrawalGroupId,
);
- if (r) {
- return r.reservePub;
- }
- return undefined;
+ return r?.reservePub;
});
if (!reservePub) {
logger.warn(