refactor: replace mapNotNull with firstNotNullOfOrNull

This commit is contained in:
Producdevity 2025-08-31 02:53:43 +02:00 committed by crueter
parent 21c77bdcac
commit a6c2942185

View file

@ -98,7 +98,7 @@ object DriverResolver {
async { async {
searchRepository(repoPath, filename) searchRepository(repoPath, filename)
} }
}.mapNotNull { it.await() }.firstOrNull().also { resolved -> }.firstNotNullOfOrNull { it.await() }.also { resolved ->
// Cache the result if found // Cache the result if found
resolved?.let { resolved?.let {
urlCache[filename] = it urlCache[filename] = it