mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix lint
This commit is contained in:
+2
-1
@@ -43,7 +43,8 @@ class TimelineItemContentPollFactory @Inject constructor(
|
|||||||
.groupBy { content.votes[it]?.size ?: 0 } // Group by votes count
|
.groupBy { content.votes[it]?.size ?: 0 } // Group by votes count
|
||||||
.maxBy { it.key } // Keep max voted answers
|
.maxBy { it.key } // Keep max voted answers
|
||||||
.takeIf { it.key > 0 } // Ignore if no option has been voted
|
.takeIf { it.key > 0 } // Ignore if no option has been voted
|
||||||
?.value.orEmpty()
|
?.value
|
||||||
|
.orEmpty()
|
||||||
val answerItems = content.answers.map { answer ->
|
val answerItems = content.answers.map { answer ->
|
||||||
val votesCount = content.votes[answer.id]?.size ?: 0
|
val votesCount = content.votes[answer.id]?.size ?: 0
|
||||||
val isSelected = answer.id in userVotes
|
val isSelected = answer.id in userVotes
|
||||||
|
|||||||
Reference in New Issue
Block a user