Skip to content

Commit 0269bf2

Browse files
chore: refactor into more idiomatic kotlin
1 parent c6c0c03 commit 0269bf2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

auth/src/main/java/com/firebase/ui/auth/FirebaseAuthActivity.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ class FirebaseAuthActivity : ComponentActivity() {
9292
return
9393
}
9494

95-
authUI = if (launchKey != null) {
96-
authUICache[launchKey]
97-
} else {
98-
null
99-
} ?: run {
95+
authUI = launchKey?.let { authUICache[it] } ?: run {
10096
// Missing auth instance, finish with error
10197
setResult(RESULT_CANCELED)
10298
finish()

0 commit comments

Comments
 (0)