Skip to content

Commit

Permalink
Use classical for loop instead of forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaturel committed Jan 5, 2023
1 parent d604035 commit ff9e78b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RoomActivePollsController @Inject constructor(
}

val host = this
data.forEach { poll ->
for (poll in data) {
activePollItem {
id(poll.id)
formattedDate(host.dateFormatter.format(poll.creationTimestamp, DateFormatKind.TIMELINE_DAY_DIVIDER))
Expand Down

0 comments on commit ff9e78b

Please sign in to comment.