Skip to content

Commit 33c13e7

Browse files
committed
Coding style updates
1 parent d7bc2c0 commit 33c13e7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

SDWebImage/SDImageCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot
7979
/**
8080
* Init a new cache store with a specific namespace and directory
8181
*
82-
* @param ns The namespace to use for this cache store
82+
* @param ns The namespace to use for this cache store
8383
* @param directory Directory to cache disk images in
8484
*/
8585
- (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory;

SDWebImage/SDImageCache.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,9 @@ - (id)initWithNamespace:(NSString *)ns diskCacheDirectory:(NSString *)directory
106106
_memCache.name = fullNamespace;
107107

108108
// Init the disk cache
109-
if(directory!=nil)
110-
{
109+
if (directory != nil) {
111110
_diskCachePath = [directory stringByAppendingPathComponent:fullNamespace];
112-
}
113-
else
114-
{
111+
} else {
115112
NSString *path = [self makeDiskCachePath:ns];
116113
_diskCachePath = path;
117114
}

0 commit comments

Comments
 (0)