Skip to content

Commit 167bb04

Browse files
authored
Merge pull request #603 from wellth-app/hotfix/duplicate-options
Removed duplicate `options` definition
2 parents 9276264 + d2fd035 commit 167bb04

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

RNFSManager.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -813,14 +813,11 @@ + (BOOL)requiresMainQueueSetup
813813
PHAsset *phAsset = [phAssetFetchResult firstObject];
814814
PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init];
815815
options.networkAccessAllowed = YES;
816+
options.version = PHVideoRequestOptionsVersionOriginal;
817+
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;
816818

817819
dispatch_group_t group = dispatch_group_create();
818820
dispatch_group_enter(group);
819-
820-
PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc]init];
821-
options.version = PHVideoRequestOptionsVersionOriginal;
822-
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;
823-
options.networkAccessAllowed = YES;
824821

825822
[[PHImageManager defaultManager] requestAVAssetForVideo:phAsset options:options resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) {
826823

0 commit comments

Comments
 (0)