File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments