Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Removing useless check for cache policy before cacheing images in suc…
Browse files Browse the repository at this point in the history
…cess callback
  • Loading branch information
mattt committed Nov 21, 2011
1 parent 9719122 commit 1f750a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AFNetworking/UIImageView+AFNetworking.m
Expand Up @@ -112,9 +112,7 @@ - (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
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) {
if (failure) {
failure(operation.request, operation.response, error);
Expand Down

0 comments on commit 1f750a3

Please sign in to comment.