Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #51 from ParsePlatform/nlutsenko.xctoolchain
Browse files Browse the repository at this point in the history
Update xctoolchain, fix new static analyzer warnings.
  • Loading branch information
nlutsenko committed Feb 13, 2016
2 parents 5427320 + 7c2ef81 commit f0a1ff4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ @implementation PFFacebookAuthenticationProvider
- (instancetype)initWithApplication:(UIApplication *)application
launchOptions:(nullable NSDictionary *)launchOptions {
self = [super init];
if (!self) return nil;
if (!self) return self;

[[FBSDKApplicationDelegate sharedInstance] application:[UIApplication sharedApplication]
didFinishLaunchingWithOptions:launchOptions];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ @implementation PFFacebookMobileAuthenticationProvider
- (instancetype)initWithApplication:(UIApplication *)application
launchOptions:(nullable NSDictionary *)launchOptions {
self = [super initWithApplication:application launchOptions:launchOptions];
if (!self) return nil;
if (!self) return self;

_loginManager = [[FBSDKLoginManager alloc] init];

Expand Down
4 changes: 2 additions & 2 deletions ParseFacebookUtils/Internal/PFFacebookPrivateUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ NS_ASSUME_NONNULL_BEGIN
+ (NSDictionary *)userAuthenticationDataWithFacebookUserId:(NSString *)userId
accessToken:(NSString *)accessToken
expirationDate:(NSDate *)expirationDate;
+ (NSDictionary *)userAuthenticationDataFromAccessToken:(FBSDKAccessToken *)token;
+ (nullable NSDictionary *)userAuthenticationDataFromAccessToken:(FBSDKAccessToken *)token;

+ (FBSDKAccessToken *)facebookAccessTokenFromUserAuthenticationData:(nullable NSDictionary<NSString *, NSString *> *)authData;
+ (nullable FBSDKAccessToken *)facebookAccessTokenFromUserAuthenticationData:(nullable NSDictionary<NSString *, NSString *> *)authData;

@end

Expand Down
4 changes: 2 additions & 2 deletions ParseFacebookUtils/Internal/PFFacebookPrivateUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ + (NSDictionary *)userAuthenticationDataWithFacebookUserId:(NSString *)userId
@"expiration_date" : [[NSDateFormatter pffb_preciseDateFormatter] stringFromDate:expirationDate] };
}

+ (NSDictionary *)userAuthenticationDataFromAccessToken:(FBSDKAccessToken *)token {
+ (nullable NSDictionary *)userAuthenticationDataFromAccessToken:(FBSDKAccessToken *)token {
if (!token.userID || !token.tokenString || !token.expirationDate) {
return nil;
}
Expand All @@ -43,7 +43,7 @@ + (NSDictionary *)userAuthenticationDataFromAccessToken:(FBSDKAccessToken *)toke
expirationDate:token.expirationDate];
}

+ (FBSDKAccessToken *)facebookAccessTokenFromUserAuthenticationData:(nullable NSDictionary<NSString *, NSString *> *)authData {
+ (nullable FBSDKAccessToken *)facebookAccessTokenFromUserAuthenticationData:(nullable NSDictionary<NSString *, NSString *> *)authData {
NSString *accessToken = authData[@"access_token"];
NSString *expirationDateString = authData[@"expiration_date"];
if (!accessToken || !expirationDateString) {
Expand Down
2 changes: 1 addition & 1 deletion Vendor/xctoolchain

0 comments on commit f0a1ff4

Please sign in to comment.