diff --git a/SDWebImage/SDImageCache.h b/SDWebImage/SDImageCache.h index e1009e56..0157aaec 100644 --- a/SDWebImage/SDImageCache.h +++ b/SDWebImage/SDImageCache.h @@ -79,7 +79,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot /** * Init a new cache store with a specific namespace and directory * - * @param ns The namespace to use for this cache store + * @param ns The namespace to use for this cache store * @param directory Directory to cache disk images in */ - (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory; diff --git a/SDWebImage/SDImageCache.m b/SDWebImage/SDImageCache.m index 26afdb33..03dfa3bd 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -106,12 +106,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { _memCache.name = fullNamespace; // Init the disk cache - if(directory!=nil) - { + if (directory != nil) { _diskCachePath = [directory stringByAppendingPathComponent:fullNamespace]; - } - else - { + } else { NSString *path = [self makeDiskCachePath:ns]; _diskCachePath = path; }