Remove shadow variable warning

This commit is contained in:
zhongwuzw 2019-03-16 00:16:01 +08:00
parent 9c3b7a84b7
commit 0686584771
1 changed files with 3 additions and 3 deletions

View File

@ -107,11 +107,11 @@
for (NSURL *url in token.urls) {
__weak typeof(self) wself = self;
SDAsyncBlockOperation *prefetchOperation = [SDAsyncBlockOperation blockOperationWithBlock:^(SDAsyncBlockOperation * _Nonnull asyncOperation) {
__strong typeof(wself) sself = wself;
if (!sself) {
__strong typeof(wself) strongSelf = wself;
if (!strongSelf) {
return;
}
id<SDWebImageOperation> operation = [sself.manager loadImageWithURL:url options:sself.options context:sself.context progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
id<SDWebImageOperation> operation = [strongSelf.manager loadImageWithURL:url options:strongSelf.options context:strongSelf.context progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
__strong typeof(wself) sself = wself;
if (!sself) {
return;