Authored by Andy LaVoy

change var name

@@ -122,8 +122,8 @@ @@ -122,8 +122,8 @@
122 } 122 }
123 __block id<SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished) 123 __block id<SDWebImageOperation> subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished)
124 { 124 {
125 - BOOL imageIsGIF = [data isGIF];  
126 - if (imageIsGIF) 125 + BOOL isImageGIF = [data isGIF];
  126 + if (isImageGIF)
127 { 127 {
128 downloadedImage = [UIImage animatedGIFWithData:data]; 128 downloadedImage = [UIImage animatedGIFWithData:data];
129 } 129 }
@@ -156,7 +156,7 @@ @@ -156,7 +156,7 @@
156 { 156 {
157 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^ 157 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^
158 { 158 {
159 - UIImage *transformedImage = imageIsGIF ? downloadedImage : [self.delegate imageManager:self transformDownloadedImage:downloadedImage withURL:url]; 159 + UIImage *transformedImage = isImageGIF ? downloadedImage : [self.delegate imageManager:self transformDownloadedImage:downloadedImage withURL:url];
160 160
161 dispatch_async(dispatch_get_main_queue(), ^ 161 dispatch_async(dispatch_get_main_queue(), ^
162 { 162 {
@@ -165,7 +165,7 @@ @@ -165,7 +165,7 @@
165 165
166 if (transformedImage && finished) 166 if (transformedImage && finished)
167 { 167 {
168 - NSData *dataToStore = imageIsGIF ? data : nil; 168 + NSData *dataToStore = isImageGIF ? data : nil;
169 [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk]; 169 [self.imageCache storeImage:transformedImage imageData:dataToStore forKey:key toDisk:cacheOnDisk];
170 } 170 }
171 }); 171 });