Skip to content

Commit

Permalink
Merge pull request #603 from wellth-app/hotfix/duplicate-options
Browse files Browse the repository at this point in the history
Removed duplicate `options` definition
  • Loading branch information
itinance authored Dec 19, 2018
2 parents 9276264 + d2fd035 commit 167bb04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,11 @@ + (BOOL)requiresMainQueueSetup
PHAsset *phAsset = [phAssetFetchResult firstObject];
PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init];
options.networkAccessAllowed = YES;
options.version = PHVideoRequestOptionsVersionOriginal;
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;

dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group);

PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc]init];
options.version = PHVideoRequestOptionsVersionOriginal;
options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;
options.networkAccessAllowed = YES;

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

Expand Down

0 comments on commit 167bb04

Please sign in to comment.