diff options
author | Florian Dold <florian@dold.me> | 2021-12-13 11:28:57 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-13 11:28:57 +0100 |
commit | 2237058bcc8f589b51137fe5f8e3ed53039e25db (patch) | |
tree | 95cc9efe9e5f5b45d840207d61738b6ec8a174f1 /packages | |
parent | c493a3069ec330b955efd8604cb9d8b76277c74e (diff) |
style
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 5 |
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( |