Merge pull request #387 from jamesreggio/fix-null-headers

Fix build breakage
This commit is contained in:
Hagen Hübel 2017-11-17 23:33:18 +01:00 committed by GitHub
commit 2dfcac5dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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