Removing useless check for cache policy before cacheing images in success callback

This commit is contained in:
Mattt Thompson 2011-11-21 12:44:32 -06:00
parent 97191228e0
commit 1f750a36fe

View file

@ -112,9 +112,7 @@ static char kAFImageRequestOperationObjectKey;
self.image = placeholderImage; self.image = placeholderImage;
} }
if ([urlRequest cachePolicy]) { [[AFImageCache sharedImageCache] cacheImageData:operation.responseData forURL:[urlRequest URL] cacheName:nil];
[[AFImageCache sharedImageCache] cacheImageData:operation.responseData forURL:[urlRequest URL] cacheName:nil];
}
} failure:^(AFHTTPRequestOperation *operation, NSError *error) { } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
if (failure) { if (failure) {
failure(operation.request, operation.response, error); failure(operation.request, operation.response, error);