Coding style updates

This commit is contained in:
Bogdan Poplauschi 2015-07-13 22:18:33 +03:00
parent d7bc2c0036
commit 33c13e79ca
2 changed files with 3 additions and 6 deletions

View File

@ -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;

View File

@ -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;
}