Skip to content

Commit

Permalink
Removed an explicit bang that was causing a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogowbrito committed Dec 4, 2015
1 parent 59da438 commit 03ccbfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFImageHelper/AFImageExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public extension UIImage {
closure(image: nil)
}
}
if let image = UIImage(data: data!) {
if let data = data, image = UIImage(data: data) {
if shouldCacheImage {
UIImage.sharedCache().setObject(image, forKey: url)
}
Expand Down

0 comments on commit 03ccbfa

Please sign in to comment.