Merge pull request #3599 from dreampiggy/bugfix/warning_garden
Fix one warning because local variable shadows the variable outside of block
This commit is contained in:
commit
27b5f0fa90
|
@ -269,9 +269,9 @@ static NSString * _defaultDiskCacheDirectory;
|
||||||
format = [SDImageCoderHelper CGImageContainsAlpha:image.CGImage] ? SDImageFormatPNG : SDImageFormatJPEG;
|
format = [SDImageCoderHelper CGImageContainsAlpha:image.CGImage] ? SDImageFormatPNG : SDImageFormatJPEG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NSData *data = [[SDImageCodersManager sharedManager] encodedDataWithImage:image format:format options:context[SDWebImageContextImageEncodeOptions]];
|
NSData *encodedData = [[SDImageCodersManager sharedManager] encodedDataWithImage:image format:format options:context[SDWebImageContextImageEncodeOptions]];
|
||||||
dispatch_async(self.ioQueue, ^{
|
dispatch_async(self.ioQueue, ^{
|
||||||
[self _storeImageDataToDisk:data forKey:key];
|
[self _storeImageDataToDisk:encodedData forKey:key];
|
||||||
[self _archivedDataWithImage:image forKey:key];
|
[self _archivedDataWithImage:image forKey:key];
|
||||||
if (completionBlock) {
|
if (completionBlock) {
|
||||||
[(queue ?: SDCallbackQueue.mainQueue) async:^{
|
[(queue ?: SDCallbackQueue.mainQueue) async:^{
|
||||||
|
|
Loading…
Reference in New Issue