diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-28 01:10:54 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-28 13:46:36 +0200 |
commit | 08bd3dc0e8a3c2370e4e8abbaa241eaafc144f4c (patch) | |
tree | 9a55a5734718e7c278ccb24733425184fb8cea34 /src/wxApi.ts | |
parent | 7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 (diff) | |
download | wallet-core-08bd3dc0e8a3c2370e4e8abbaa241eaafc144f4c.tar.xz |
add linting rules and fix them
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r-- | src/wxApi.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts index b74cb9eb1..1f7d08fb3 100644 --- a/src/wxApi.ts +++ b/src/wxApi.ts @@ -17,11 +17,12 @@ import { AmountJson, CoinRecord, + CurrencyRecord, + DenominationRecord, + ExchangeRecord, PreCoinRecord, ReserveCreationInfo, - ExchangeRecord, - CurrencyRecord, - ReserveRecord, DenominationRecord + ReserveRecord, } from "./types"; /** @@ -31,13 +32,13 @@ import { export function getReserveCreationInfo(baseUrl: string, - amount: AmountJson): Promise<ReserveCreationInfo> { - let m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; + amount: AmountJson): Promise<ReserveCreationInfo> { + const m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; return new Promise<ReserveCreationInfo>((resolve, reject) => { chrome.runtime.sendMessage(m, (resp) => { if (resp.error) { console.error("error response", resp); - let e = Error("call to reserve-creation-info failed"); + const e = Error("call to reserve-creation-info failed"); (e as any).errorResponse = resp; reject(e); return; |