From 4996ae8d9d90c138776d6660965289ae7aba18de Mon Sep 17 00:00:00 2001 From: fragosti Date: Wed, 30 Jan 2019 10:30:50 -0800 Subject: run linter --- packages/pipeline/src/data_sources/bloxy/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'packages/pipeline') diff --git a/packages/pipeline/src/data_sources/bloxy/index.ts b/packages/pipeline/src/data_sources/bloxy/index.ts index 68764ca98..22ab195b3 100644 --- a/packages/pipeline/src/data_sources/bloxy/index.ts +++ b/packages/pipeline/src/data_sources/bloxy/index.ts @@ -78,10 +78,7 @@ export class BloxySource { public async getDexTradesAsync(lastSeenTimestamp: number): Promise { const allTrades = await this._scrapeAllDexTradesAsync(lastSeenTimestamp); logUtils.log(`Removing duplicates from ${allTrades.length} entries`); - const uniqueTrades = R.uniqBy( - (trade: BloxyTrade) => `${trade.tradeIndex}-${trade.tx_hash}`, - allTrades, - ) as BloxyTrade[]; + const uniqueTrades = R.uniqBy((trade: BloxyTrade) => `${trade.tradeIndex}-${trade.tx_hash}`, allTrades); logUtils.log(`Removed ${allTrades.length - uniqueTrades.length} duplicate entries`); return uniqueTrades; } -- cgit