forked from tornadocash/tornado-cli
Remove duplicate & unreachable code
This commit is contained in:
parent
6115a09420
commit
28e831802f
7
cli.js
7
cli.js
@ -1031,11 +1031,7 @@ async function fetchEvents({ type, currency, amount, filterEvents }) {
|
|||||||
)
|
)
|
||||||
.catch(console.log);
|
.catch(console.log);
|
||||||
|
|
||||||
if (type === 'deposit') {
|
mapLatestEvents();
|
||||||
mapDepositEvents();
|
|
||||||
} else {
|
|
||||||
mapWithdrawEvents();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await fetchWeb3Events(i);
|
await fetchWeb3Events(i);
|
||||||
@ -1046,7 +1042,6 @@ async function fetchEvents({ type, currency, amount, filterEvents }) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
throw new Error('Error while updating cache');
|
throw new Error('Error while updating cache');
|
||||||
process.exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user