condition error fixed

This commit is contained in:
Николай Ашанин 2016-09-29 18:06:23 +03:00
parent 96c9ed1d52
commit df79bfdb6f
2 changed files with 1 additions and 2 deletions

BIN
LeadKit/.DS_Store vendored

Binary file not shown.

View File

@ -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)
}