Skip to content

Commit 2acbcd8

Browse files
committed
fix typo and remove un-used code
1 parent 2c4c6c4 commit 2acbcd8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

FirebaseAuth/Sources/Swift/AuthProvider/PhoneAuthProvider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ import Foundation
298298

299299
/// Starts the flow to verify the client via silent push notification. This is used in both
300300
/// .Audit and .Enforce mode
301-
/// - Parameter retryOnInvalidAppCredential: Whether of not the flow should be retried if an
301+
/// - Parameter retryOnInvalidAppCredential: Whether or not the flow should be retried if an
302302
/// AuthErrorCodeInvalidAppCredential error is returned from the backend.
303303
/// - Parameter phoneNumber: The phone number to be verified.
304304
private func verifyClAndSendVerificationCodeWithRecaptcha(toPhoneNumber phoneNumber: String,
@@ -367,7 +367,7 @@ import Foundation
367367

368368
/// Starts the flow to verify the client via silent push notification.
369369
/// This method is called in Audit fallback flow with "NO_RECAPTCHA" fake token and Off flow
370-
/// - Parameter retryOnInvalidAppCredential: Whether of not the flow should be retried if an
370+
/// - Parameter retryOnInvalidAppCredential: Whether or not the flow should be retried if an
371371
/// AuthErrorCodeInvalidAppCredential error is returned from the backend.
372372
/// - Parameter phoneNumber: The phone number to be verified.
373373
private func verifyClAndSendVerificationCode(toPhoneNumber phoneNumber: String,

FirebaseAuth/Sources/Swift/Utilities/AuthRecaptchaVerifier.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
return _shared
8686
}
8787

88+
/// This function is only for testing.
8889
class func setShared(_ instance: AuthRecaptchaVerifier, auth: Auth?) {
8990
_shared = instance
9091
_ = shared(auth: auth)

FirebaseAuth/Tests/Unit/PhoneAuthProviderTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
private let kRecaptchaVersion: String = "RECAPTCHA_ENTERPRISE"
4646

4747
static var auth: Auth?
48-
// static var authRecaptchaVerifier: AuthRecaptchaVerifier
4948

5049
/** @fn testCredentialWithVerificationID
5150
@brief Tests the @c credentialWithToken method to make sure that it returns a valid AuthCredential instance.

0 commit comments

Comments
 (0)