Corrected test data after rebase on master
This commit is contained in:
+4
-3
@@ -1,8 +1,9 @@
|
|||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// INTENTION_TEXT: "Replace with 'firstOrNull{}'"
|
// INTENTION_TEXT: "Replace with 'firstOrNull{}'"
|
||||||
fun foo(list: List<String>) {
|
fun foo(list: List<String>) {
|
||||||
val <caret>result: String? = list.firstOrNull { // search for first non-empty string in the list
|
// string should be non-empty
|
||||||
it.length > 0
|
|
||||||
}// string should be non-empty
|
|
||||||
// save it into result
|
// save it into result
|
||||||
|
val result: String? = list.firstOrNull { // search for first non-empty string in the list
|
||||||
|
it.length > 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user