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

Commit

Permalink
rename the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelen123 committed Aug 6, 2023
1 parent bba1ea0 commit c6ba3ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

class ContributorViewModel(private val repository: ReVancedAPI) : ViewModel() {
class ContributorViewModel(private val reVancedAPI: ReVancedAPI) : ViewModel() {
val repositories = mutableStateListOf<ReVancedGitRepository>()

init {
viewModelScope.launch {
withContext(Dispatchers.IO) { repository.getContributors().getOrNull() }?.let(
withContext(Dispatchers.IO) { reVancedAPI.getContributors().getOrNull() }?.let(
repositories::addAll
)
}
Expand Down

0 comments on commit c6ba3ff

Please sign in to comment.