Minor code formatting
This commit is contained in:
parent
6d15ca8807
commit
a5b33d573a
1 changed files with 6 additions and 5 deletions
|
|
@ -35,7 +35,6 @@ static inline NSString * AFImageCacheKeyFromURLAndCacheName(NSURL *url, NSString
|
|||
+ (AFImageCache *)sharedImageCache {
|
||||
static AFImageCache *_sharedImageCache = nil;
|
||||
static dispatch_once_t oncePredicate;
|
||||
|
||||
dispatch_once(&oncePredicate, ^{
|
||||
_sharedImageCache = [[self alloc] init];
|
||||
});
|
||||
|
|
@ -45,12 +44,14 @@ static inline NSString * AFImageCacheKeyFromURLAndCacheName(NSURL *url, NSString
|
|||
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED
|
||||
self.imageScale = [[UIScreen mainScreen] scale];
|
||||
#endif
|
||||
if (!self) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED
|
||||
self.imageScale = [[UIScreen mainScreen] scale];
|
||||
#endif
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue