Skip to content

Commit cd4b925

Browse files
committed
Update to SDWebImage#732 to fix misspell (completion instead of completition)
1 parent db252d3 commit cd4b925

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

SDWebImage/SDImageCache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ typedef void(^SDWebImageCheckCacheCompletionBlock)(BOOL isInCache);
136136
* @param key The unique image cache key
137137
* @param completionBlock An block that should be executed after the image has been removed (optional)
138138
*/
139-
- (void)removeImageForKey:(NSString *)key withCompletition:(void (^)())completion;
139+
- (void)removeImageForKey:(NSString *)key withCompletion:(void (^)())completion;
140140

141141
/**
142142
* Remove the image from memory and optionally disk cache synchronously
@@ -153,7 +153,7 @@ typedef void(^SDWebImageCheckCacheCompletionBlock)(BOOL isInCache);
153153
* @param fromDisk Also remove cache entry from disk if YES
154154
* @param completionBlock An block that should be executed after the image has been removed (optional)
155155
*/
156-
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletition:(void (^)())completion;
156+
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(void (^)())completion;
157157

158158
/**
159159
* Clear all memory cached images

SDWebImage/SDImageCache.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,18 +316,18 @@ - (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(void (^)(UIImage *im
316316
}
317317

318318
- (void)removeImageForKey:(NSString *)key {
319-
[self removeImageForKey:key withCompletition:nil];
319+
[self removeImageForKey:key withCompletion:nil];
320320
}
321321

322-
- (void)removeImageForKey:(NSString *)key withCompletition:(void (^)())completion {
323-
[self removeImageForKey:key fromDisk:YES withCompletition:completion];
322+
- (void)removeImageForKey:(NSString *)key withCompletion:(void (^)())completion {
323+
[self removeImageForKey:key fromDisk:YES withCompletion:completion];
324324
}
325325

326326
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk {
327-
[self removeImageForKey:key fromDisk:fromDisk withCompletition:nil];
327+
[self removeImageForKey:key fromDisk:fromDisk withCompletion:nil];
328328
}
329329

330-
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletition:(void (^)())completion {
330+
- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk withCompletion:(void (^)())completion {
331331

332332
if (key == nil) {
333333
return;

0 commit comments

Comments
 (0)