diff --git a/StarryStars/RatingView.swift b/StarryStars/RatingView.swift index ba52059..db9e4e0 100644 --- a/StarryStars/RatingView.swift +++ b/StarryStars/RatingView.swift @@ -64,7 +64,10 @@ public class RatingView: UIView { halfImage = UIImage(named: "starBigHalf")! } - guard let offImage = offImage else { assert(false, "offImage is not set") } + guard let offImage = offImage else { + assert(false, "offImage is not set") + return + } for var i = 1; i <= starCount; i++ { let iv = UIImageView(image: offImage)