Skip to content

Commit c740332

Browse files
committed
Refactor: Replace for each indexed with for each for stats utils
1 parent 7b69170 commit c740332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/utils

WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/utils/StatsUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class StatsUtils @Inject constructor(
172172
entries: List<Line>
173173
): List<String> {
174174
val contentDescriptions = mutableListOf<String>()
175-
entries.forEachIndexed { _, bar ->
175+
entries.forEach { bar ->
176176
val contentDescription = resourceProvider.getString(
177177
R.string.stats_bar_chart_accessibility_entry,
178178
bar.label,

0 commit comments

Comments
 (0)