Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Upadated formatting AGAIN!
Browse files Browse the repository at this point in the history
  • Loading branch information
slightfoot committed Sep 10, 2018
1 parent b172c51 commit d26dd78
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ @interface NSError (FIRAuthErrorCode)
@implementation NSError (FIRAuthErrorCode)
- (NSString *)firAuthErrorCode {
NSString *code = [self userInfo][FIRAuthErrorNameKey];
if(code != nil){
return code;
if (code != nil) {
return code;
}
return [NSString stringWithFormat:@"ERROR_%d", (int)self.code];
}
Expand Down Expand Up @@ -183,8 +183,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
}];
} else if ([@"linkWithFacebookCredential" isEqualToString:call.method]) {
NSString *accessToken = call.arguments[@"accessToken"];
FIRAuthCredential *credential =
[FIRFacebookAuthProvider credentialWithAccessToken:accessToken];
FIRAuthCredential *credential = [FIRFacebookAuthProvider credentialWithAccessToken:accessToken];
[[FIRAuth auth].currentUser
linkAndRetrieveDataWithCredential:credential
completion:^(FIRAuthDataResult *_Nullable authResult,
Expand Down

0 comments on commit d26dd78

Please sign in to comment.