tests: apply official code style

#KT-38632 Fixed
This commit is contained in:
Dmitry Gridin
2020-04-28 15:51:57 +07:00
parent d8f9643650
commit 11a3482970
406 changed files with 1785 additions and 1525 deletions
@@ -3,10 +3,10 @@
// INTENTION_TEXT_2: "Replace with 'asSequence().flatMap{}.mapNotNull{}.mapTo(){}'"
fun foo(list: List<String>, target: MutableList<String>) {
<caret>list
.asSequence()
.flatMap { it.indices.asSequence() }
.mapNotNull { bar(it) }
.mapTo(target) { it.substring(1) }
.asSequence()
.flatMap { it.indices.asSequence() }
.mapNotNull { bar(it) }
.mapTo(target) { it.substring(1) }
}
fun bar(p: Int): String? = null