From 1ac6b92d9d68a560f80e3797e04edab1024caf08 Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Tue, 3 Dec 2013 16:41:00 -0500 Subject: [PATCH] Conform to coding style --- SDWebImage/UIButton+WebCache.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SDWebImage/UIButton+WebCache.m b/SDWebImage/UIButton+WebCache.m index 2625fc8..afa3192 100644 --- a/SDWebImage/UIButton+WebCache.m +++ b/SDWebImage/UIButton+WebCache.m @@ -18,7 +18,8 @@ static char operationKey; { NSURL *url = self.imageURLStorage[@(self.state)]; - if (!url) { + if (!url) + { url = self.imageURLStorage[@(UIControlStateNormal)]; } @@ -134,7 +135,8 @@ static char operationKey; - (NSMutableDictionary *)imageURLStorage; { NSMutableDictionary *storage = objc_getAssociatedObject(self, &imageURLStorageKey); - if (!storage) { + if (!storage) + { storage = [NSMutableDictionary dictionary]; objc_setAssociatedObject(self, &imageURLStorageKey, storage, OBJC_ASSOCIATION_RETAIN_NONATOMIC); }