Authored by Bogdan Poplauschi

Coding style updates

@@ -79,7 +79,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot @@ -79,7 +79,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot
79 /** 79 /**
80 * Init a new cache store with a specific namespace and directory 80 * Init a new cache store with a specific namespace and directory
81 * 81 *
82 - * @param ns The namespace to use for this cache store 82 + * @param ns The namespace to use for this cache store
83 * @param directory Directory to cache disk images in 83 * @param directory Directory to cache disk images in
84 */ 84 */
85 - (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory; 85 - (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory;
@@ -106,12 +106,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { @@ -106,12 +106,9 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) {
106 _memCache.name = fullNamespace; 106 _memCache.name = fullNamespace;
107 107
108 // Init the disk cache 108 // Init the disk cache
109 - if(directory!=nil)  
110 - { 109 + if (directory != nil) {
111 _diskCachePath = [directory stringByAppendingPathComponent:fullNamespace]; 110 _diskCachePath = [directory stringByAppendingPathComponent:fullNamespace];
112 - }  
113 - else  
114 - { 111 + } else {
115 NSString *path = [self makeDiskCachePath:ns]; 112 NSString *path = [self makeDiskCachePath:ns];
116 _diskCachePath = path; 113 _diskCachePath = path;
117 } 114 }