From 08bd3dc0e8a3c2370e4e8abbaa241eaafc144f4c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 28 May 2017 01:10:54 +0200 Subject: add linting rules and fix them --- src/wxApi.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/wxApi.ts') 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 { - let m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; + amount: AmountJson): Promise { + const m = { type: "reserve-creation-info", detail: { baseUrl, amount } }; return new Promise((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; -- cgit v1.2.3