Skip to content

Commit 7117268

Browse files
committed
Made the requirement of a non-nil formatName more explicit.
1 parent d756f28 commit 7117268

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

FastImageCache/FICImageCache.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ - (BOOL)asynchronouslyRetrieveImageForEntity:(id <FICEntity>)entity withFormatNa
153153
}
154154

155155
- (BOOL)_retrieveImageForEntity:(id <FICEntity>)entity withFormatName:(NSString *)formatName loadSynchronously:(BOOL)loadSynchronously completionBlock:(FICImageCacheCompletionBlock)completionBlock {
156+
NSParameterAssert(formatName);
157+
156158
BOOL imageExists = NO;
157159

158160
FICImageTable *imageTable = [_imageTables objectForKey:formatName];

0 commit comments

Comments
 (0)