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/exchanges.ts | |
parent | 07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (diff) |
linter
Diffstat (limited to 'src/operations/exchanges.ts')
-rw-r--r-- | src/operations/exchanges.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operations/exchanges.ts b/src/operations/exchanges.ts index b9806bb62..53b250a8e 100644 --- a/src/operations/exchanges.ts +++ b/src/operations/exchanges.ts @@ -198,7 +198,7 @@ async function updateExchangeWithKeys( ), ); - let recoupGroupId: string | undefined = undefined; + const recoupGroupId: string | undefined = undefined; await ws.db.runWithWriteTransaction( [Stores.exchanges, Stores.denominations, Stores.recoupGroups, Stores.coins], @@ -459,7 +459,7 @@ async function updateExchangeWithWireInfo( export async function updateExchangeFromUrl( ws: InternalWalletState, baseUrl: string, - forceNow: boolean = false, + forceNow = false, ): Promise<ExchangeRecord> { const onOpErr = (e: OperationError) => setExchangeError(ws, baseUrl, e); return await guardOperationException( @@ -476,7 +476,7 @@ export async function updateExchangeFromUrl( async function updateExchangeFromUrlImpl( ws: InternalWalletState, baseUrl: string, - forceNow: boolean = false, + forceNow = false, ): Promise<ExchangeRecord> { const now = getTimestampNow(); baseUrl = canonicalizeBaseUrl(baseUrl); @@ -583,7 +583,7 @@ export async function getExchangePaytoUri( if (!exchangeWireInfo) { throw Error(`Exchange wire info for '${exchangeBaseUrl}' not found.`); } - for (let account of exchangeWireInfo.accounts) { + for (const account of exchangeWireInfo.accounts) { const res = parsePaytoUri(account.payto_uri); if (!res) { continue; |