Skip to content

Commit 8753da6

Browse files
committed
Fixed styling in GIDSignIn.m and GIDSignInTest.m
1 parent 438aa69 commit 8753da6

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

GoogleSignIn/Sources/GIDSignIn.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,10 +762,10 @@ - (void)signInWithOptions:(GIDSignInInternalOptions *)options {
762762
// If tokenClaims are invalid or JSON serialization fails, return with an error.
763763
options.tokenClaimsAsJSON = [_tokenClaimsInternalOptions
764764
validatedJSONStringForClaims:options.tokenClaims
765-
error:&claimsError];
765+
error:&claimsError];
766766
if (claimsError) {
767767
if (options.completion) {
768-
self->_currentOptions = nil;
768+
_currentOptions = nil;
769769
dispatch_async(dispatch_get_main_queue(), ^{
770770
options.completion(nil, claimsError);
771771
});

GoogleSignIn/Tests/Unit/GIDSignInTest.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,12 +952,11 @@ - (void)testAddScopes_WithPreviouslyRequestedClaims {
952952
NSString *grantedScopeString = _savedAuthorizationRequest.scope;
953953

954954
if (grantedScopeString) {
955-
grantedScopeString = [grantedScopeString stringByTrimmingCharactersInSet:
956-
[NSCharacterSet whitespaceCharacterSet]];
957-
// Tokenize with space as a delimiter.
955+
NSCharacterSet *whiteSpaceChars = [NSCharacterSet whitespaceCharacterSet];
956+
grantedScopeString =
957+
[grantedScopeString stringByTrimmingCharactersInSet:whiteSpaceChars];
958958
NSMutableArray<NSString *> *parsedScopes =
959959
[[grantedScopeString componentsSeparatedByString:@" "] mutableCopy];
960-
// Remove empty strings.
961960
[parsedScopes removeObject:@""];
962961
grantedScopes = [parsedScopes copy];
963962
}
@@ -970,7 +969,6 @@ - (void)testAddScopes_WithPreviouslyRequestedClaims {
970969

971970
[_user verify];
972971
[profile verify];
973-
[profile stopMocking];
974972
}
975973

976974
- (void)testOpenIDRealm {

0 commit comments

Comments
 (0)