Skip to content

Commit ff9e78b

Browse files
committed
Use classical for loop instead of forEach
1 parent d604035 commit ff9e78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/src/main/java/im/vector/app/features/roomprofile/polls/active/RoomActivePollsController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RoomActivePollsController @Inject constructor(
3838
}
3939

4040
val host = this
41-
data.forEach { poll ->
41+
for (poll in data) {
4242
activePollItem {
4343
id(poll.id)
4444
formattedDate(host.dateFormatter.format(poll.creationTimestamp, DateFormatKind.TIMELINE_DAY_DIVIDER))

0 commit comments

Comments
 (0)