Skip to content

Commit 057affe

Browse files
committed
Fix non-iOS builds
1 parent 63f1a21 commit 057affe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseAuth/Sources/Swift/Backend/AuthBackend.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AuthBackend: AuthBackendProtocol {
107107
private static func generateMFAError(response: AuthRPCResponse, auth: Auth) -> Error? {
108108
#if !os(iOS)
109109
return nil
110-
#endif // !os(iOS)
110+
#else
111111
if let mfaResponse = response as? AuthMFAResponse,
112112
mfaResponse.idToken == nil,
113113
let enrollments = mfaResponse.mfaInfo {
@@ -130,6 +130,7 @@ class AuthBackend: AuthBackendProtocol {
130130
} else {
131131
return nil
132132
}
133+
#endif // !os(iOS)
133134
}
134135

135136
// Check whether or not the successful response is actually the special case phone

0 commit comments

Comments
 (0)