Rename: intention tests "ifNullToElvis" --> "foldInitializerAndIfToElvis"

This commit is contained in:
Mikhail Glukhikh
2016-10-11 15:08:38 +03:00
parent 0903402282
commit c6fefbc223
31 changed files with 21 additions and 21 deletions
@@ -0,0 +1,6 @@
fun foo(p: List<String?>): Int {
val v = p[0]
// now check if v is null
<caret>if (v == null/* null */) return -1 // return -1
return v.length
}