Skip to content

Commit d99ff87

Browse files
authored
Merge pull request #518 from morganchen12/anon
move pragma
2 parents 8f65b73 + 05c776c commit d99ff87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseAuthUI/FUIAuth.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ - (void)completeSignInWithResult:(nullable FIRAuthDataResult *)authResult
347347
BOOL isAuthPickerShown =
348348
[presentingViewController isKindOfClass:[FUIAuthPickerViewController class]];
349349
if (callback) {
350-
callback(authResult.user, nil);
350+
callback(authResult.user, error);
351351
}
352352
// Hide Auth Picker Controller which was presented modally.
353353
if (isAuthPickerShown && presentingViewController.presentingViewController) {
@@ -624,11 +624,11 @@ - (void)handleAccountLinkingForEmail:(NSString *)email
624624
- (void)invokeResultCallbackWithAuthDataResult:(nullable FIRAuthDataResult *)authDataResult
625625
error:(nullable NSError *)error {
626626
dispatch_async(dispatch_get_main_queue(), ^{
627-
#pragma clang diagnostic push
628-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
629627
if ([self.delegate respondsToSelector:@selector(authUI:didSignInWithAuthDataResult:error:)]) {
630628
[self.delegate authUI:self didSignInWithAuthDataResult:authDataResult error:error];
631629
}
630+
#pragma clang diagnostic push
631+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
632632
if ([self.delegate respondsToSelector:@selector(authUI:didSignInWithUser:error:)]) {
633633
[self.delegate authUI:self didSignInWithUser:authDataResult.user error:error];
634634
}

0 commit comments

Comments
 (0)