Avoid placing nil value into NSDictionary in downloader

This commit is contained in:
James Reggio 2017-11-16 16:58:30 -05:00
parent b9660f6038
commit b78d8a150d
No known key found for this signature in database
GPG Key ID: D7B0D206CE500BE8

View File

@ -463,7 +463,7 @@ RCT_EXPORT_METHOD(downloadFile:(NSDictionary *)options
body:@{@"jobId": jobId, body:@{@"jobId": jobId,
@"statusCode": statusCode, @"statusCode": statusCode,
@"contentLength": contentLength, @"contentLength": contentLength,
@"headers": headers}]; @"headers": headers || [NSNull null]}];
}; };
params.progressCallback = ^(NSNumber* contentLength, NSNumber* bytesWritten) { params.progressCallback = ^(NSNumber* contentLength, NSNumber* bytesWritten) {