From 28e831802f1579fb94a87a4708a40e12ba8cb9e7 Mon Sep 17 00:00:00 2001 From: Theodike <44587268+Theodikes@users.noreply.github.com> Date: Fri, 14 Apr 2023 23:09:12 +0300 Subject: [PATCH] Remove duplicate & unreachable code --- cli.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cli.js b/cli.js index 64c8727..2e57c7e 100755 --- a/cli.js +++ b/cli.js @@ -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); } }