Skip to content

Commit

Permalink
Fix lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yue-Wang-Google committed Feb 23, 2019
1 parent c040b9c commit e6525d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Firebase/Auth/Source/AuthProviders/OAuth/FIROAuthProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ - (void)getHeadFulLiteURLWithEventID:(NSString *)eventID
NSString *URLString =
[NSString stringWithFormat:kHeadfulLiteURLStringFormat, authDomain, argumentsString];
if (completion) {
NSCharacterSet *set = [NSCharacterSet URLFragmentAllowedCharacterSet];
completion([NSURL URLWithString:
[URLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]], nil);
[URLString stringByAddingPercentEncodingWithAllowedCharacters:set]], nil);
}
}];
}
Expand Down
4 changes: 2 additions & 2 deletions Firebase/Auth/Source/FIRAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,10 @@ - (void)fetchProvidersForEmail:(NSString *)email
}


#if TARGET_OS_IOS
- (void)signInWithProvider:(id<FIRFederatedAuthProvider>)provider
UIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
completion:(nullable FIRAuthDataResultCallback)completion {
#if TARGET_OS_IOS
dispatch_async(FIRAuthGlobalWorkQueue(), ^{
FIRAuthDataResultCallback decoratedCallback =
[self signInFlowAuthDataResultCallbackByDecoratingCallback:completion];
Expand All @@ -487,8 +487,8 @@ - (void)signInWithProvider:(id<FIRFederatedAuthProvider>)provider
callback:decoratedCallback];
}];
});
}
#endif // TARGET_OS_IOS
}

- (void)fetchSignInMethodsForEmail:(nonnull NSString *)email
completion:(nullable FIRSignInMethodQueryCallback)completion {
Expand Down
2 changes: 1 addition & 1 deletion Firebase/Auth/Source/FIRAuthWebUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ + (NSString *)stringByUnescapingFromURLArgument:(NSString *)argument {
withString:@" "
options:NSLiteralSearch
range:NSMakeRange(0, [resultString length])];
return [resultString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
return [resultString stringByRemovingPercentEncoding];
}

@end
Expand Down

0 comments on commit e6525d7

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy