File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/storage/ios/RNFBStorage Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -370,13 +370,12 @@ + (NSMutableDictionary *)getDownloadTaskAsDictionary:(FIRStorageTaskSnapshot *)t
370
370
@" totalBytes" : @(task.progress .totalUnitCount )
371
371
} mutableCopy];
372
372
} else {
373
- return [@{@" bytesTransferred" : @(0 ), @" state" : [self getTaskStatus: nil ], @" totalBytes" : @(0 )}
373
+ return [@{@" bytesTransferred" : @(0 ), @" state" : [self getTaskStatus: FIRStorageTaskStatusUnknown ], @" totalBytes" : @(0 )}
374
374
mutableCopy ];
375
375
}
376
376
}
377
377
378
378
+ (NSString *)getTaskStatus : (FIRStorageTaskStatus)status {
379
- if (status == nil ) return @" unknown" ;
380
379
if (status == FIRStorageTaskStatusResume || status == FIRStorageTaskStatusProgress) {
381
380
return @" running" ;
382
381
} else if (status == FIRStorageTaskStatusPause) {
You can’t perform that action at this time.
0 commit comments