Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
chore: remove unneeded continues and optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Jul 2, 2022
1 parent 278f5da commit 0237729
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 6 additions & 2 deletions packages/chain-adapters/src/evm/EVMBaseAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { AssetId, ChainId, toAssetId } from '@shapeshiftoss/caip'
import { ETHSignMessage } from '@shapeshiftoss/hdwallet-core'
import { bip32ToAddressNList, ETHSignTx, ETHWallet } from '@shapeshiftoss/hdwallet-core'
import {
bip32ToAddressNList,
ETHSignMessage,
ETHSignTx,
ETHWallet
} from '@shapeshiftoss/hdwallet-core'
import { BIP44Params, KnownChainIds } from '@shapeshiftoss/types'
import * as unchained from '@shapeshiftoss/unchained-client'
import WAValidator from 'multicoin-address-validator'
Expand Down
2 changes: 0 additions & 2 deletions packages/market-service/src/fiat-market-service-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const findByFiatSymbol = async ({ symbol }: FiatMarketDataArgs) => {
result = await FiatMarketProviders[i].findByFiatSymbol({ symbol })
} catch (e) {
// Swallow error, not every fiat will be with every provider.
continue
}
}
if (!result) return null
Expand All @@ -33,7 +32,6 @@ export const findPriceHistoryByFiatSymbol: FiatPriceHistoryType = async ({
result = await FiatMarketProviders[i].findPriceHistoryByFiatSymbol({ symbol, timeframe })
} catch (e) {
// Swallow error, not every fiat will be with every provider.
continue
}
}
if (!result) return []
Expand Down
4 changes: 1 addition & 3 deletions packages/market-service/src/market-service-manager.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { JsonRpcProvider } from '@ethersproject/providers'
import {
FindAllMarketArgs,
HistoryData,
MarketCapResult,
MarketData,
MarketDataArgs,
PriceHistoryArgs
} from '@shapeshiftoss/types'
import { FindAllMarketArgs } from '@shapeshiftoss/types'
import { Yearn } from '@yfi/sdk'

import { MarketService } from './api'
Expand Down Expand Up @@ -79,7 +79,6 @@ export class MarketServiceManager {
result = await this.marketProviders[i].findByAssetId({ assetId })
} catch (e) {
// Swallow error, not every asset will be with every provider.
continue
}
}
if (!result) return null
Expand All @@ -97,7 +96,6 @@ export class MarketServiceManager {
result = await this.marketProviders[i].findPriceHistoryByAssetId({ assetId, timeframe })
} catch (e) {
// Swallow error, not every asset will be with every provider.
continue
}
}
if (!result) return []
Expand Down

0 comments on commit 0237729

Please sign in to comment.