From e116aa5ce03b9aee2033cec9264e5eb8702af8f8 Mon Sep 17 00:00:00 2001 From: Bogdan Poplauschi Date: Thu, 19 Jun 2014 21:58:20 +0300 Subject: [PATCH] Updated some older code to match the coding style --- SDWebImage/UIButton+WebCache.m | 3 +-- SDWebImage/UIImageView+WebCache.m | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/SDWebImage/UIButton+WebCache.m b/SDWebImage/UIButton+WebCache.m index bd9cec7e..27857cf6 100644 --- a/SDWebImage/UIButton+WebCache.m +++ b/SDWebImage/UIButton+WebCache.m @@ -133,8 +133,7 @@ static char operationKey; } } -- (NSMutableDictionary *)imageURLStorage; -{ +- (NSMutableDictionary *)imageURLStorage { NSMutableDictionary *storage = objc_getAssociatedObject(self, &imageURLStorageKey); if (!storage) { diff --git a/SDWebImage/UIImageView+WebCache.m b/SDWebImage/UIImageView+WebCache.m index d279228c..668162f7 100644 --- a/SDWebImage/UIImageView+WebCache.m +++ b/SDWebImage/UIImageView+WebCache.m @@ -72,13 +72,11 @@ static char operationArrayKey; } } -- (NSURL *)imageURL; -{ +- (NSURL *)imageURL { return objc_getAssociatedObject(self, &imageURLKey); } -- (void)setAnimationImagesWithURLs:(NSArray *)arrayOfURLs -{ +- (void)setAnimationImagesWithURLs:(NSArray *)arrayOfURLs { [self cancelCurrentArrayLoad]; __weak UIImageView *wself = self;