For #21776 - Call chain on collection type may be simplified

This commit is contained in:
Gabriel Luong 2021-10-07 14:20:54 -04:00 committed by mergify[bot]
parent 100547130e
commit 44666ca2ca

View File

@ -86,7 +86,7 @@ internal fun getFilteredStoriesCount(
}
}
false -> {
return selectedCategories.map { it.name to it.stories.size }.toMap()
return selectedCategories.associate { it.name to it.stories.size }
}
}