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

Commit

Permalink
Merge pull request #32 from ParsePlatform/nlutsenko.warnings
Browse files Browse the repository at this point in the history
Fix analyzer and build warnings.
  • Loading branch information
nlutsenko authored Jun 28, 2016
2 parents 56d6ecc + e92ad9a commit 339cbe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ParseTwitterUtils/Internal/OAuthCore/PF_OAuthCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ + (NSString *)authorizationHeaderFromConfiguration:(PFOAuthConfiguration *)confi
// combine all parameters
NSMutableDictionary *parameters = [oAuthAuthorizationParameters mutableCopy];
[parameters addEntriesFromDictionary:additionalQueryParameters];
[parameters addEntriesFromDictionary:additionalBodyParameters];
if (additionalBodyParameters) {
[parameters addEntriesFromDictionary:additionalBodyParameters];
}

NSArray *sortedKeys = [[parameters allKeys] sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) {
return [obj1 compare:obj2] ?: [parameters[obj1] compare:parameters[obj2]];
Expand Down
1 change: 0 additions & 1 deletion Tests/Unit/TwitterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ - (void)testDeauthorizeLoggedOutAccount {
- (void)testDeauthorizeLoggedInAccount {
id mockedStore = PFStrictClassMock([ACAccountStore class]);
id mockedURLSession = PFStrictClassMock([NSURLSession class]);
id mockedOperationQueue = PFStrictClassMock([NSOperationQueue class]);

id mockedDialog = PFStrictProtocolMock(@protocol(PFOAuth1FlowDialogInterface));
PF_Twitter *twitter = [[PF_Twitter alloc] initWithAccountStore:mockedStore urlSession:mockedURLSession dialogClass:mockedDialog];
Expand Down

0 comments on commit 339cbe3

Please sign in to comment.