aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-09 14:19:22 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-09 14:19:22 +0530
commit7ba1f918233aa3068877adfc1d2016ed661b6400 (patch)
tree1dbba5d530a2620a47e206f661518ce168aa6ea3 /src
parent4999920373bf288fa3049802fa5db16078e5cba9 (diff)
downloadwallet-core-7ba1f918233aa3068877adfc1d2016ed661b6400.tar.gz
wallet-core-7ba1f918233aa3068877adfc1d2016ed661b6400.tar.bz2
wallet-core-7ba1f918233aa3068877adfc1d2016ed661b6400.zip
formatting / DCE
Diffstat (limited to 'src')
-rw-r--r--src/operations/exchanges.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/operations/exchanges.ts b/src/operations/exchanges.ts
index 2e0fd0902..ca8c94ecc 100644
--- a/src/operations/exchanges.ts
+++ b/src/operations/exchanges.ts
@@ -15,7 +15,12 @@
*/
import { InternalWalletState } from "./state";
-import { ExchangeKeysJson, Denomination, ExchangeWireJson, codecForExchangeKeysJson, codecForExchangeWireJson } from "../types/talerTypes";
+import {
+ ExchangeKeysJson,
+ Denomination,
+ codecForExchangeKeysJson,
+ codecForExchangeWireJson,
+} from "../types/talerTypes";
import { OperationError } from "../types/walletTypes";
import {
ExchangeRecord,
@@ -27,10 +32,7 @@ import {
ExchangeUpdateReason,
ExchangeUpdatedEventRecord,
} from "../types/dbTypes";
-import {
- canonicalizeBaseUrl,
-} from "../util/helpers";
-import { Database } from "../util/query";
+import { canonicalizeBaseUrl } from "../util/helpers";
import * as Amounts from "../util/amounts";
import { parsePaytoUri } from "../util/payto";
import {
@@ -127,7 +129,7 @@ async function updateExchangeWithKeys(
throw new OperationFailedAndReportedError(m);
}
- const lastUpdateTimestamp = exchangeKeysJson.list_issue_date
+ const lastUpdateTimestamp = exchangeKeysJson.list_issue_date;
if (!lastUpdateTimestamp) {
const m = `Parsing /keys response failed: invalid list_issue_date.`;
await setExchangeError(ws, baseUrl, {