Code indent garden

This commit is contained in:
DreamPiggy 2019-11-05 11:36:00 +08:00
parent 2c723aa2a3
commit 64b4c24535
2 changed files with 7 additions and 8 deletions

View File

@ -44,9 +44,9 @@
// Get the current frame and loop count.
self.totalLoopCount = provider.animatedImageLoopCount;
self.animatedProvider = provider;
#if SD_UIKIT
#if SD_UIKIT
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveMemoryWarning:) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
#endif
#endif
}
return self;
}
@ -111,8 +111,7 @@
return _displayLink;
}
- (void)setRunLoopMode:(NSRunLoopMode)runLoopMode
{
- (void)setRunLoopMode:(NSRunLoopMode)runLoopMode {
if ([_runLoopMode isEqual:runLoopMode]) {
return;
}
@ -127,8 +126,7 @@
_runLoopMode = [runLoopMode copy];
}
- (NSRunLoopMode)runLoopMode
{
- (NSRunLoopMode)runLoopMode {
if (!_runLoopMode) {
_runLoopMode = [[self class] defaultRunLoopMode];
}

View File

@ -382,7 +382,8 @@
}
// Check if image can represent a `Progressive Animated Image` during loading
- (id<SDAnimatedImageCoder, SDProgressiveImageCoder>)progressiveAnimatedCoderForImage:(UIImage *)image {
- (id<SDAnimatedImageCoder, SDProgressiveImageCoder>)progressiveAnimatedCoderForImage:(UIImage *)image
{
if ([image.class conformsToProtocol:@protocol(SDAnimatedImage)] && image.sd_isIncremental && [image respondsToSelector:@selector(animatedCoder)]) {
id<SDAnimatedImageCoder> animatedCoder = [(id<SDAnimatedImage>)image animatedCoder];
if ([animatedCoder conformsToProtocol:@protocol(SDProgressiveImageCoder)]) {