Remove duplicate & unreachable code

This commit is contained in:
Theodike 2023-04-14 23:09:12 +03:00
parent 6115a09420
commit 28e831802f

7
cli.js
View File

@ -1031,11 +1031,7 @@ async function fetchEvents({ type, currency, amount, filterEvents }) {
)
.catch(console.log);
if (type === 'deposit') {
mapDepositEvents();
} else {
mapWithdrawEvents();
}
mapLatestEvents();
}
await fetchWeb3Events(i);
@ -1046,7 +1042,6 @@ async function fetchEvents({ type, currency, amount, filterEvents }) {
} catch (error) {
console.log(error);
throw new Error('Error while updating cache');
process.exit(1);
}
}