Assign trailing and preceding whitespaces to lambda block until the last comment in parser
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@
|
||||
fun foo(list: List<String>) {
|
||||
// string should be non-empty
|
||||
// save it into result
|
||||
val result: String? = list.firstOrNull { // search for first non-empty string in the list
|
||||
val result: String? = list.firstOrNull {
|
||||
// search for first non-empty string in the list
|
||||
it.length > 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user