From c369d70f1228c7fc10f92a14c72005eefa345a38 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Tue, 2 Apr 2019 19:57:46 +0800 Subject: [PATCH] Adjust coding style --- SDWebImage/UIView+WebCache.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDWebImage/UIView+WebCache.m b/SDWebImage/UIView+WebCache.m index 8f402b47..cb470c6c 100644 --- a/SDWebImage/UIView+WebCache.m +++ b/SDWebImage/UIView+WebCache.m @@ -56,7 +56,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; if (!validOperationKey) { validOperationKey = NSStringFromClass([self class]); } - [self setSd_latestOperationKey:validOperationKey]; + self.sd_latestOperationKey = validOperationKey; [self sd_cancelImageLoadOperationWithKey:validOperationKey]; self.sd_imageURL = url; @@ -180,7 +180,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; } - (void)sd_cancelCurrentImageLoad { - [self sd_cancelImageLoadOperationWithKey:[self sd_latestOperationKey]]; + [self sd_cancelImageLoadOperationWithKey:self.sd_latestOperationKey]; } - (void)sd_setImage:(UIImage *)image imageData:(NSData *)imageData basedOnClassOrViaCustomSetImageBlock:(SDSetImageBlock)setImageBlock cacheType:(SDImageCacheType)cacheType imageURL:(NSURL *)imageURL {