Better formatting in some cases

This commit is contained in:
Valentin Kipyatkov
2016-04-20 15:22:44 +03:00
parent fe7ddbcc0d
commit 53e3a67a7f
12 changed files with 53 additions and 20 deletions
@@ -1,5 +1,7 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'firstOrNull{}'"
fun foo(list: List<String?>) {
<caret>val result: String? = list.firstOrNull { it != "" }?.substring(1)
<caret>val result: String? = list
.firstOrNull { it != "" }
?.substring(1)
}