Skip to content

Commit

Permalink
Fix: a variable name in FirebaseSessions' source code (#13827)
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs authored Oct 5, 2024
1 parent d37a551 commit a3e7a20
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension InstallationsProtocol {

func installationID(completion: @escaping (Result<(String, String), Error>) -> Void) {
var authTokenComplete = ""
var intallationComplete: String?
var installationComplete: String?
var errorComplete: Error?

let workingGroup = DispatchGroup()
Expand All @@ -51,7 +51,7 @@ extension InstallationsProtocol {
workingGroup.enter()
installationID { (installationID: String?, error: Error?) in
if let installationID {
intallationComplete = installationID
installationComplete = installationID
} else if let error = error {
errorComplete = error
}
Expand All @@ -67,8 +67,8 @@ extension InstallationsProtocol {
completion(.failure(FirebaseSessionsError.SessionInstallationsTimeOutError))
return
default:
if let intallationComplete {
completion(.success((intallationComplete, authTokenComplete)))
if let installationComplete {
completion(.success((installationComplete, authTokenComplete)))
} else if let errorComplete {
completion(.failure(errorComplete))
}
Expand Down

0 comments on commit a3e7a20

Please sign in to comment.