In progress: KT-7442 Inspection + intention to replace "if (xxx == null) return ..' with elvis
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// IS_APPLICABLE: false
|
||||
class C {
|
||||
var v: String? = null
|
||||
|
||||
fun foo(p: List<String?>): Int {
|
||||
val v = p[0]
|
||||
<caret>if (this.v == null) return -1
|
||||
return v!!.length()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user