Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: a variable name in FirebaseSessions' source code #13827

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading