refactor: replace mapNotNull with firstNotNullOfOrNull
This commit is contained in:
parent
21c77bdcac
commit
a6c2942185
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ object DriverResolver {
|
|||
async {
|
||||
searchRepository(repoPath, filename)
|
||||
}
|
||||
}.mapNotNull { it.await() }.firstOrNull().also { resolved ->
|
||||
}.firstNotNullOfOrNull { it.await() }.also { resolved ->
|
||||
// Cache the result if found
|
||||
resolved?.let {
|
||||
urlCache[filename] = it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue