From 9a5770693ed5fb0ef7b5bfd42e94b3aa69a20a2d Mon Sep 17 00:00:00 2001 From: Rui Date: Wed, 13 Nov 2024 14:42:43 -0800 Subject: [PATCH] Lint --- .../trading/feature/market/search/DydxMarketSearchViewModel.kt | 2 +- .../components/positions/DydxPortfolioPositionsViewModel.kt | 2 +- .../exchange/dydx/trading/feature/vault/DydxVaultViewModel.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v4/feature/market/src/main/java/exchange/dydx/trading/feature/market/search/DydxMarketSearchViewModel.kt b/v4/feature/market/src/main/java/exchange/dydx/trading/feature/market/search/DydxMarketSearchViewModel.kt index fc9ed455..30342505 100644 --- a/v4/feature/market/src/main/java/exchange/dydx/trading/feature/market/search/DydxMarketSearchViewModel.kt +++ b/v4/feature/market/src/main/java/exchange/dydx/trading/feature/market/search/DydxMarketSearchViewModel.kt @@ -83,7 +83,7 @@ class DydxMarketSearchViewModel @Inject constructor( ) }?.distinctBy { it.sharedMarketViewState?.id - } ?: emptyList(), + } ?: emptyList(), searchText = searchText.value, searchTextChanged = { searchText.value = it diff --git a/v4/feature/portfolio/src/main/java/exchange/dydx/trading/feature/portfolio/components/positions/DydxPortfolioPositionsViewModel.kt b/v4/feature/portfolio/src/main/java/exchange/dydx/trading/feature/portfolio/components/positions/DydxPortfolioPositionsViewModel.kt index f122ee20..343c73aa 100644 --- a/v4/feature/portfolio/src/main/java/exchange/dydx/trading/feature/portfolio/components/positions/DydxPortfolioPositionsViewModel.kt +++ b/v4/feature/portfolio/src/main/java/exchange/dydx/trading/feature/portfolio/components/positions/DydxPortfolioPositionsViewModel.kt @@ -66,7 +66,7 @@ class DydxPortfolioPositionsViewModel @Inject constructor( ) }?.distinctBy { it.id - }?: listOf(), + } ?: listOf(), onPositionTapAction = { position -> val market = marketMap?.get(position.id) ?: return@ViewState router.navigateTo( diff --git a/v4/feature/vault/src/main/java/exchange/dydx/trading/feature/vault/DydxVaultViewModel.kt b/v4/feature/vault/src/main/java/exchange/dydx/trading/feature/vault/DydxVaultViewModel.kt index 8862517f..e3ae9c0c 100644 --- a/v4/feature/vault/src/main/java/exchange/dydx/trading/feature/vault/DydxVaultViewModel.kt +++ b/v4/feature/vault/src/main/java/exchange/dydx/trading/feature/vault/DydxVaultViewModel.kt @@ -60,7 +60,7 @@ class DydxVaultViewModel @Inject constructor( createPositionItem(position, asset) }?.distinctBy { it.id - } ?: listOf() + } ?: listOf() return DydxVaultView.ViewState( localizer = localizer, items = items,