Surround with null check for unsafe things: find first parent statement to surround (which is not used as expression) #KT-13958 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Surround with null check" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foz(arg: String?) {
|
||||
if (arg != null) {
|
||||
if (arg.isNotEmpty()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user