aboutsummaryrefslogtreecommitdiff
path: root/src/operations/reserves.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 21:15:41 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 21:15:41 +0530
commitf36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (patch)
tree9a242a06bd5353c8b167600c31776c9f16d9d21c /src/operations/reserves.ts
parent07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (diff)
downloadwallet-core-f36bb7a04eabe0330cb166bf9ce5021c92f38dc8.tar.xz
linter
Diffstat (limited to 'src/operations/reserves.ts')
-rw-r--r--src/operations/reserves.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts
index 5c299d112..2ee1b358f 100644
--- a/src/operations/reserves.ts
+++ b/src/operations/reserves.ts
@@ -248,7 +248,7 @@ export async function forceQueryReserve(
export async function processReserve(
ws: InternalWalletState,
reservePub: string,
- forceNow: boolean = false,
+ forceNow = false,
): Promise<void> {
return ws.memoProcessReserve.memo(reservePub, async () => {
const onOpError = (err: OperationError) =>
@@ -264,7 +264,7 @@ async function registerReserveWithBank(
ws: InternalWalletState,
reservePub: string,
): Promise<void> {
- let reserve = await ws.db.get(Stores.reserves, reservePub);
+ const reserve = await ws.db.get(Stores.reserves, reservePub);
switch (reserve?.reserveStatus) {
case ReserveRecordStatus.WAIT_CONFIRM_BANK:
case ReserveRecordStatus.REGISTERING_BANK:
@@ -317,7 +317,7 @@ async function processReserveBankStatusImpl(
ws: InternalWalletState,
reservePub: string,
): Promise<void> {
- let reserve = await ws.db.get(Stores.reserves, reservePub);
+ const reserve = await ws.db.get(Stores.reserves, reservePub);
switch (reserve?.reserveStatus) {
case ReserveRecordStatus.WAIT_CONFIRM_BANK:
case ReserveRecordStatus.REGISTERING_BANK:
@@ -534,7 +534,7 @@ async function updateReserve(
async function processReserveImpl(
ws: InternalWalletState,
reservePub: string,
- forceNow: boolean = false,
+ forceNow = false,
): Promise<void> {
const reserve = await ws.db.get(Stores.reserves, reservePub);
if (!reserve) {