Insert line break before elvis when converting if to elvis

This ensures correct indentation
This commit is contained in:
Dmitry Jemerov
2017-12-21 17:09:25 +01:00
parent 6208c69c72
commit 3178dee759
3 changed files with 22 additions and 3 deletions
@@ -1,5 +1,6 @@
fun foo(p: List<String?>): Int {
val v = p[0] ?: // return -1 if null
val v = p[0]
?: // return -1 if null
<caret>return -1
return v.length
}
@@ -1,5 +1,6 @@
fun foo(p: List<String?>): Int {
val v = p[0] ?: // v is null
val v = p[0]
?: // v is null
// we should do something with it
return -1 // let's return -1
// end of if