Skip to content

Commit

Permalink
Fix ktlint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Feb 3, 2024
1 parent 2d91796 commit a5d5e43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,17 @@ inline fun <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> combine(
flow9: Flow<T9>,
crossinline transform: suspend (T1, T2, T3, T4, T5, T6, T7, T8, T9) -> R
): Flow<R> {
return kotlinx.coroutines.flow.combine(flow, flow2, flow3, flow4, flow5, flow6, flow7, flow8, flow9) { args: Array<*> ->
return kotlinx.coroutines.flow.combine(
flow,
flow2,
flow3,
flow4,
flow5,
flow6,
flow7,
flow8,
flow9
) { args: Array<*> ->
@Suppress("UNCHECKED_CAST", "MagicNumber")
transform(
args[0] as T1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import kotlinx.coroutines.flow.update
import kotlinx.parcelize.Parcelize
import javax.inject.Inject


@OptIn(FlowPreview::class)
@HiltViewModel
class BlazeCampaignTargetLocationSelectionViewModel @Inject constructor(
Expand Down Expand Up @@ -88,7 +87,7 @@ class BlazeCampaignTargetLocationSelectionViewModel @Inject constructor(
private fun observeSearchQuery() {
searchQuery
.debounce { query -> if (query.isEmpty()) 0L else AppConstants.SEARCH_TYPING_DELAY_MS }
.onEach{ query ->
.onEach { query ->
if (query.length > 2) {
searchState.update { Searching }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private fun TargetSelectionScreen(
)
}

when(state.searchState) {
when (state.searchState) {
is Searching, is Results, is NoResults, is Ready -> {
SearchList(
state = state,
Expand Down

0 comments on commit a5d5e43

Please sign in to comment.