Remove obsolete null check.
This commit is contained in:
@@ -174,8 +174,6 @@ class CounterViewModel @Inject constructor(
|
|||||||
init {
|
init {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
gameRepository.getActiveGameFlow().collect {
|
gameRepository.getActiveGameFlow().collect {
|
||||||
if (it != null) {
|
|
||||||
|
|
||||||
val score = it.getTotalPoints()
|
val score = it.getTotalPoints()
|
||||||
|
|
||||||
roundScoreList = it.rounds
|
roundScoreList = it.rounds
|
||||||
@@ -186,8 +184,6 @@ class CounterViewModel @Inject constructor(
|
|||||||
teamNameB = it.game.nameB
|
teamNameB = it.game.nameB
|
||||||
|
|
||||||
buildTeamNameSuggestions()
|
buildTeamNameSuggestions()
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user