Adjust coding style

This commit is contained in:
zhongwuzw 2019-04-02 19:57:46 +08:00
parent 8294d74e93
commit c369d70f12
1 changed files with 2 additions and 2 deletions

View File

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