Skip to content

Commit 44a350b

Browse files
paulb777ncooke3
andauthored
Update FirebaseAuth/Sources/Swift/MultiFactor/MultiFactorSession.swift
Co-authored-by: Nick Cooke <[email protected]>
1 parent 1042f5f commit 44a350b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

FirebaseAuth/Sources/Swift/MultiFactor/MultiFactorSession.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ import Foundation
4040
var currentUser: User?
4141

4242
class func session(for user: User?) -> MultiFactorSession {
43-
let currentUser = if user != nil {
44-
user
45-
} else {
46-
Auth.auth().currentUser
47-
}
43+
let currentUser = user ?? Auth.auth().currentUser
4844
guard let currentUser else {
4945
fatalError("Internal Auth Error: missing user for multifactor auth")
5046
}

0 commit comments

Comments
 (0)