Skip to content

Commit

Permalink
[#333] 로그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
taehwandev committed Jun 10, 2024
1 parent c838fff commit 24766b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.droidknights.app.feature.contributor

import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.droidknights.app.core.domain.usecase.GetContributorsUseCase
Expand All @@ -27,7 +26,6 @@ class ContributorViewModel @Inject constructor(
val uiState: StateFlow<ContributorsUiState> =
getContributorsUseCase()
.map {
Log.i("TEMP", "map? ${it}")
it.toContributorsUiState()
}
.catch { throwable ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import kotlinx.collections.immutable.toPersistentList

internal fun Map<Int, List<Contributor>>.toContributorsUiState(): ContributorsUiState {
val newList = mutableListOf<ContributorsUiState.Contributors.Item>()

// key, value 추가
forEach { (key, values) ->
newList.add(
ContributorsUiState.Contributors.Item.Section(
Expand All @@ -23,6 +25,7 @@ internal fun Map<Int, List<Contributor>>.toContributorsUiState(): ContributorsUi
)
}
}

return ContributorsUiState.Contributors(
contributors = newList.toPersistentList(),
)
Expand Down

0 comments on commit 24766b0

Please sign in to comment.