From 33c13e79ca53e823b0b0474435206a63932ee2cc Mon Sep 17 00:00:00 2001 From: Bogdan Poplauschi Date: Mon, 13 Jul 2015 22:18:33 +0300 Subject: [PATCH] Coding style updates --- SDWebImage/SDImageCache.h | 2 +- SDWebImage/SDImageCache.m | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/SDWebImage/SDImageCache.h b/SDWebImage/SDImageCache.h index e1009e56c..0157aaec4 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 26afdb332..03dfa3bde 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -106,12 +106,9 @@ - (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory _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; }