Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO

#KT-19643 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-03 13:42:53 +07:00
parent 8b0b135112
commit 74c177fd26
55 changed files with 194 additions and 212 deletions
@@ -0,0 +1,8 @@
fun foo(p: List<String?>): Int {
val v = p[0]
<caret>if (v == null) { // v is null
// we should do something with it
return -1 // let's return -1
} // end of if
return v.length
}