From bb369f2e2ab7838751ce9aae2e23622be1391586 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Sep 2020 19:07:14 +0530 Subject: auto-format --- packages/taler-wallet-core/src/operations/refund.ts | 7 ++++++- packages/taler-wallet-core/src/operations/state.ts | 2 +- packages/taler-wallet-core/src/operations/testing.ts | 11 +++++++++-- packages/taler-wallet-core/src/operations/transactions.ts | 2 +- packages/taler-wallet-core/src/operations/withdraw.ts | 6 +++++- 5 files changed, 22 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/refund.ts b/packages/taler-wallet-core/src/operations/refund.ts index 2c7427c03..787d2bb4c 100644 --- a/packages/taler-wallet-core/src/operations/refund.ts +++ b/packages/taler-wallet-core/src/operations/refund.ts @@ -260,7 +260,12 @@ async function acceptRefunds( const refreshCoinsPubs = Object.values(refreshCoinsMap); if (refreshCoinsPubs.length > 0) { - await createRefreshGroup(ws, tx, refreshCoinsPubs, RefreshReason.Refund); + await createRefreshGroup( + ws, + tx, + refreshCoinsPubs, + RefreshReason.Refund, + ); } // Are we done with querying yet, or do we need to do another round diff --git a/packages/taler-wallet-core/src/operations/state.ts b/packages/taler-wallet-core/src/operations/state.ts index 131e9083d..c4d5b38f1 100644 --- a/packages/taler-wallet-core/src/operations/state.ts +++ b/packages/taler-wallet-core/src/operations/state.ts @@ -82,7 +82,7 @@ export class InternalWalletState { */ async runSequentialized(tokens: string[], f: () => Promise) { // Make sure locks are always acquired in the same order - tokens = [... tokens].sort(); + tokens = [...tokens].sort(); for (const token of tokens) { if (this.resourceLocks.has(token)) { diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index f1b2d98ff..0a83773ab 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -33,7 +33,11 @@ import { Wallet } from "../wallet"; import { Amounts } from "../util/amounts"; import { NodeHttpLib } from "../headless/NodeHttpLib"; import { getDefaultNodeWallet } from "../headless/helpers"; -import { TestPayArgs, PreparePayResultType, IntegrationTestArgs } from "../types/walletTypes"; +import { + TestPayArgs, + PreparePayResultType, + IntegrationTestArgs, +} from "../types/walletTypes"; const logger = new Logger("operations/testing.ts"); @@ -410,7 +414,10 @@ export async function testPay( args: TestPayArgs, ) { logger.trace("creating order"); - const merchant = { apikey: args.merchantApiKey, baseUrl: args.merchantBaseUrl }; + const merchant = { + apikey: args.merchantApiKey, + baseUrl: args.merchantBaseUrl, + }; const orderResp = await createOrder( http, merchant, diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 3115b9506..cc569fd24 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -165,7 +165,7 @@ export async function getTransactions( TransactionType.Withdrawal, wsr.withdrawalGroupId, ), - ...(wsr.lastError ? { error: wsr.lastError} : {}), + ...(wsr.lastError ? { error: wsr.lastError } : {}), }); } break; diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 2ab1ea52d..c68f1521f 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -48,7 +48,11 @@ import { updateExchangeFromUrl, getExchangeTrust } from "./exchanges"; import { WALLET_EXCHANGE_PROTOCOL_VERSION } from "./versions"; import * as LibtoolVersion from "../util/libtoolVersion"; -import { guardOperationException, makeErrorDetails, OperationFailedError } from "./errors"; +import { + guardOperationException, + makeErrorDetails, + OperationFailedError, +} from "./errors"; import { NotificationType } from "../types/notifications"; import { getTimestampNow, -- cgit v1.2.3