This repository was archived by the owner on Mar 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -412,9 +412,9 @@ + (void) readFile:(NSString *)path encoding:(NSString *)encoding
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];
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ -(id)initWithType:(ProgressType)type interval:(NSNumber *)interval count:(NSNumb
32
32
33
33
-(BOOL )shouldReport : (NSNumber *)nextProgress
34
34
{
35
- BOOL result = YES ;
35
+ BOOL * result = YES ;
36
36
float countF = [self .count floatValue ];
37
37
if (countF > 0 && [nextProgress floatValue ] > 0 )
38
38
{
@@ -43,7 +43,7 @@ -(BOOL)shouldReport:(NSNumber *)nextProgress
43
43
// NSTimeInterval is defined as double
44
44
NSNumber *timeStampObj = [NSNumber numberWithDouble: timeStamp];
45
45
float delta = [timeStampObj doubleValue ] - lastTick;
46
- BOOL shouldReport = delta > [self .interval doubleValue ] && self.enable && result;
46
+ BOOL * shouldReport = delta > [self .interval doubleValue ] && self.enable && result;
47
47
if (shouldReport)
48
48
{
49
49
tick++;
You can’t perform that action at this time.
0 commit comments