diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:15:41 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:15:41 +0530 |
commit | f36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (patch) | |
tree | 9a242a06bd5353c8b167600c31776c9f16d9d21c /src/operations/pay.ts | |
parent | 07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (diff) | |
download | wallet-core-f36bb7a04eabe0330cb166bf9ce5021c92f38dc8.tar.xz |
linter
Diffstat (limited to 'src/operations/pay.ts')
-rw-r--r-- | src/operations/pay.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/operations/pay.ts b/src/operations/pay.ts index 9b9d2fa9f..3a629e9c2 100644 --- a/src/operations/pay.ts +++ b/src/operations/pay.ts @@ -198,8 +198,8 @@ export function selectPayCoins( let totalFees = Amounts.getZero(currency); let amountPayRemaining = paymentAmount; let amountDepositFeeLimitRemaining = depositFeeLimit; - let customerWireFees = Amounts.getZero(currency); - let customerDepositFees = Amounts.getZero(currency); + const customerWireFees = Amounts.getZero(currency); + const customerDepositFees = Amounts.getZero(currency); for (const aci of acis) { // Don't use this coin if depositing it is more expensive than // the amount it would give the merchant. @@ -283,7 +283,7 @@ async function getCoinsForPayment( const exchanges = await ws.db.iter(Stores.exchanges).toArray(); for (const exchange of exchanges) { - let isOkay: boolean = false; + let isOkay = false; const exchangeDetails = exchange.details; if (!exchangeDetails) { continue; @@ -618,7 +618,7 @@ async function incrementPurchasePayRetry( export async function processDownloadProposal( ws: InternalWalletState, proposalId: string, - forceNow: boolean = false, + forceNow = false, ): Promise<void> { const onOpErr = (err: OperationError) => incrementProposalRetry(ws, proposalId, err); @@ -1106,7 +1106,7 @@ export async function confirmPay( export async function processPurchasePay( ws: InternalWalletState, proposalId: string, - forceNow: boolean = false, + forceNow = false, ): Promise<void> { const onOpErr = (e: OperationError) => incrementPurchasePayRetry(ws, proposalId, e); |