Permalink
Browse files

added nil check just for bette readability

  • Loading branch information...
1 parent 8663942 commit a468ac577b9a9a6f032c447e359a08a356366933 @artifacts committed Dec 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/shared/AFCache.m
@@ -327,7 +327,7 @@ - (void)doHousekeeping {
NSArray *keys = nil;
NSString *key = nil;
for (AFCacheableItemInfo *info in [CACHED_OBJECTS allValues]) {
- if (info.expireDate == [now earlierDate:info.expireDate]) {
+ if (info.expireDate != nil && info.expireDate == [now earlierDate:info.expireDate]) {
keys = [CACHED_OBJECTS allKeysForObject:info];
if ([keys count] > 0) {
key = [keys objectAtIndex:0];

0 comments on commit a468ac5

Please sign in to comment.