Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO
#KT-19643 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(p: List<String?>): Int {
|
||||
val v = p[0]
|
||||
?: // return -1 if null
|
||||
<caret>return -1
|
||||
return v.length
|
||||
}
|
||||
Reference in New Issue
Block a user