mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Convert alloc/init to new to please linter
This commit is contained in:
@@ -101,7 +101,7 @@ RCT_NOT_IMPLEMENTED(-init)
|
||||
{
|
||||
if ([self validateRequestToken:requestToken]) {
|
||||
if (!_data) {
|
||||
_data = [[NSMutableData alloc] init];
|
||||
_data = [NSMutableData new];
|
||||
}
|
||||
[_data appendData:data];
|
||||
if (_incrementalDataBlock) {
|
||||
|
||||
Reference in New Issue
Block a user