|
@@ -412,9 +412,9 @@ NSMutableDictionary *fileStreams = nil;
|
412
|
412
|
}
|
413
|
413
|
else
|
414
|
414
|
{
|
415
|
|
- BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:path];
|
416
|
|
- if(!exists) {
|
417
|
|
- reject(@"RNFetchBlobFS readFile error", @"file not exists", [[NSError alloc]init]);
|
|
415
|
+ if(![[NSFileManager defaultManager] fileExistsAtPath:path]) {
|
|
416
|
+
|
|
417
|
+ reject(@"RNFetchBlobFS readFile error", @"file not exists", nil);
|
418
|
418
|
return;
|
419
|
419
|
}
|
420
|
420
|
fileContent = [NSData dataWithContentsOfFile:path];
|