taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 2237058bcc8f589b51137fe5f8e3ed53039e25db
parent c493a3069ec330b955efd8604cb9d8b76277c74e
Author: Florian Dold <florian@dold.me>
Date:   Mon, 13 Dec 2021 11:28:57 +0100

style

Diffstat:
Mpackages/taler-wallet-core/src/operations/withdraw.ts | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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(