Browse Source

refactor: replace mapNotNull with firstNotNullOfOrNull

pull/369/head
Producdevity 6 months ago
committed by crueter
parent
commit
a6c2942185
  1. 2
      src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DriverResolver.kt

2
src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DriverResolver.kt

@ -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

Loading…
Cancel
Save