Code cleanup: convert flatMap { it } into flatten()

This commit is contained in:
Mikhail Glukhikh
2018-08-30 19:04:58 +03:00
parent dead2516c2
commit ad4da3d761
5 changed files with 5 additions and 5 deletions
@@ -116,7 +116,7 @@ class PartialBodyResolveFilter(
if (!smartCastPlaces.isEmpty()) {
//TODO: do we really need correct resolve for ALL smart cast places?
smartCastPlaces.values
.flatMap { it }
.flatten()
.forEach { statementMarks.mark(it, MarkLevel.NEED_REFERENCE_RESOLVE) }
updateNameFilter()
}