Skip to content

Commit

Permalink
Coding style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoplauschi committed Jul 13, 2015
1 parent d7bc2c0 commit 33c13e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SDWebImage/SDImageCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 2 additions & 5 deletions SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 33c13e7

Please sign in to comment.