File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
GoogleSignIn/Sources/GIDJSONSerializer/Fake Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,19 @@ @implementation GIDFakeJSONSerializerImpl
2121- (nullable NSString *)stringWithJSONObject : (NSDictionary <NSString *, id> *)jsonObject
2222 error : (NSError *_Nullable *_Nullable)error {
2323 _capturedJSONObject = [jsonObject copy ];
24-
2524 if (self.errorToReturn ) {
2625 if (error) {
2726 *error = self.errorToReturn ;
2827 }
2928 return nil ;
3029 }
31- NSData *data = [NSJSONSerialization dataWithJSONObject: jsonObject
30+ NSData *jsonData = [NSJSONSerialization dataWithJSONObject: jsonObject
3231 options: 0
3332 error: error];
34- if (!data ) {
33+ if (!jsonData ) {
3534 return nil ;
3635 }
37- return [[NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding];
36+ return [[NSString alloc ] initWithData: jsonData encoding: NSUTF8StringEncoding];
3837}
3938
4039@end
You can’t perform that action at this time.
0 commit comments