Skip to content

Commit bf4bccb

Browse files
committed
Fix one issue that when not authorized, there will call extra error completion handler
1 parent 8b9361c commit bf4bccb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SDWebImagePhotosPlugin/Classes/SDImagePhotosLoader.m

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ - (BOOL)canRequestImageForURL:(NSURL *)url {
130130
NSError *error = [NSError errorWithDomain:SDWebImagePhotosErrorDomain code:SDWebImagePhotosErrorNotAuthorized userInfo:@{NSLocalizedDescriptionKey : @"Photos library access not authorized"}];
131131
completedBlock(nil, nil, error, YES);
132132
}
133+
return nil;
133134
}
134135

135136
PHFetchOptions *fetchOptions;

0 commit comments

Comments
 (0)