From df79bfdb6fdf6c2bda245d2ce898c4ad9f0f93ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B8=CC=86=20=D0=90?= =?UTF-8?q?=D1=88=D0=B0=D0=BD=D0=B8=D0=BD?= Date: Thu, 29 Sep 2016 18:06:23 +0300 Subject: [PATCH] condition error fixed --- LeadKit/.DS_Store | Bin 6148 -> 6148 bytes .../Extensions/UIImage/UIImage+Loading.swift | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/LeadKit/.DS_Store b/LeadKit/.DS_Store index c6f0f0f96b79a6f70826ef7b6c3225c4e3479510..2b1134c490d637d4b0ad82f01b53c74f22a44be1 100644 GIT binary patch delta 18 ZcmZoMXffE}$jG>O@;XMf%^8ey!~i_<1~mWx delta 18 ZcmZoMXffE}$jDeYc^#wL<_yL;VgNe+1_J;9 diff --git a/LeadKit/LeadKit/Extensions/UIImage/UIImage+Loading.swift b/LeadKit/LeadKit/Extensions/UIImage/UIImage+Loading.swift index a2956e56..31751cf0 100644 --- a/LeadKit/LeadKit/Extensions/UIImage/UIImage+Loading.swift +++ b/LeadKit/LeadKit/Extensions/UIImage/UIImage+Loading.swift @@ -57,8 +57,7 @@ public extension UIImage { dispatch_async(dispatch_get_main_queue()) { fetchComplete(image: nil) } - } - if let data = data, image = UIImage(data: data) { + } else if let data = data, image = UIImage(data: data) { if cacheImage { UIImage.sharedCache().setObject(image, forKey: url) }