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
@@ -149,7 +149,7 @@ class ExpressionsOfTypeProcessor(
runReadAction {
val scopeElements = scopesToUsePlainSearch.values
.flatMap { it }
.flatten()
.filter { it.isValid }
.toTypedArray()
if (scopeElements.isNotEmpty()) {