Skip to content

Commit cf4fcd1

Browse files
authored
Remove unnecessary lambda from 'first(predicate)' error message (#4220)
1 parent 608dccd commit cf4fcd1

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/common/src/flow/terminal

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public suspend fun <T> Flow<T>.first(predicate: suspend (T) -> Boolean): T {
107107
true
108108
}
109109
}
110-
if (result === NULL) throw NoSuchElementException("Expected at least one element matching the predicate $predicate")
110+
if (result === NULL) throw NoSuchElementException("Expected at least one element matching the predicate")
111111
return result as T
112112
}
113113

0 commit comments

Comments
 (0)