diff options
author | Sebastian <sebasjm@gmail.com> | 2024-05-20 17:10:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-05-20 17:11:10 -0300 |
commit | 44bea073af97f8c1aee4a3fc05cbfdb6036da265 (patch) | |
tree | f59165ab0d8340968182caffb4807294f17fd895 /packages/taler-wallet-core/src/wallet.ts | |
parent | 81d52f03f56384c73f9a18758352bae474e419ff (diff) | |
download | wallet-core-44bea073af97f8c1aee4a3fc05cbfdb6036da265.tar.xz |
codespell and pretty
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 26fd64eb4..68da15410 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -551,9 +551,9 @@ async function dumpCoins(wex: WalletExecutionContext): Promise<CoinDumpJson> { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } @@ -1653,7 +1653,7 @@ async function handleCoreApiRequest( wex = getObservedWalletExecutionContext(ws, cts.token, oc); } else { oc = { - observe(evt) { }, + observe(evt) {}, }; wex = getNormalWalletExecutionContext(ws, cts.token, oc); } @@ -1790,7 +1790,7 @@ export class Cache<T> { constructor( private maxCapacity: number, private cacheDuration: Duration, - ) { } + ) {} get(key: string): T | undefined { const r = this.map.get(key); @@ -1826,7 +1826,7 @@ export class Cache<T> { * Implementation of triggers for the wallet DB. */ class WalletDbTriggerSpec implements TriggerSpec { - constructor(public ws: InternalWalletState) { } + constructor(public ws: InternalWalletState) {} afterCommit(info: AfterCommitInfo): void { if (info.mode !== "readwrite") { |