Removing useless check for cache policy before cacheing images in success callback
This commit is contained in:
parent
97191228e0
commit
1f750a36fe
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue