mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Convert alloc/init to new to please linter
This commit is contained in:
1 parent
869ff92dbc
commit
8d1e02b8bd
74 files changed
+172
-172
No files matched your search
@@ -68,7 +68,7 @@ RCT_NOT_IMPLEMENTED(-init)
|
||||
NSDictionary *errorDetails = RCTJSONParse(rawText, nil);
|
||||
if ([errorDetails isKindOfClass:[NSDictionary class]] &&
|
||||
[errorDetails[@"errors"] isKindOfClass:[NSArray class]]) {
|
||||
NSMutableArray *fakeStack = [[NSMutableArray alloc] init];
|
||||
NSMutableArray *fakeStack = [NSMutableArray new];
|
||||
for (NSDictionary *err in errorDetails[@"errors"]) {
|
||||
[fakeStack addObject: @{
|
||||
@"methodName": err[@"description"] ?: @"",
|
||||
|
||||
Reference in new issue
Block a user