diff --git a/Sources/Extensions/ImageView+Kingfisher.swift b/Sources/Extensions/ImageView+Kingfisher.swift index 68c87cf38..9378f192a 100644 --- a/Sources/Extensions/ImageView+Kingfisher.swift +++ b/Sources/Extensions/ImageView+Kingfisher.swift @@ -354,8 +354,6 @@ extension KingfisherWrapper where Base: KFCrossPlatformImageView { if let image = options.onFailureImage { mutatingSelf.placeholder = nil self.base.image = image - } else { - mutatingSelf.placeholder = placeholder } completionHandler?(result) } diff --git a/Sources/Extensions/NSButton+Kingfisher.swift b/Sources/Extensions/NSButton+Kingfisher.swift index 033a6d1a1..d33d557d1 100644 --- a/Sources/Extensions/NSButton+Kingfisher.swift +++ b/Sources/Extensions/NSButton+Kingfisher.swift @@ -157,8 +157,6 @@ extension KingfisherWrapper where Base: NSButton { case .failure: if let image = options.onFailureImage { self.base.image = image - } else { - self.base.image = placeholder } completionHandler?(result) } diff --git a/Sources/Extensions/NSTextAttachment+Kingfisher.swift b/Sources/Extensions/NSTextAttachment+Kingfisher.swift index 220065972..23f627eb8 100644 --- a/Sources/Extensions/NSTextAttachment+Kingfisher.swift +++ b/Sources/Extensions/NSTextAttachment+Kingfisher.swift @@ -225,8 +225,6 @@ extension KingfisherWrapper where Base: NSTextAttachment { case .failure: if let image = options.onFailureImage { self.base.image = image - } else { - self.base.image = placeholder } } completionHandler?(result) diff --git a/Sources/Extensions/TVMonogramView+Kingfisher.swift b/Sources/Extensions/TVMonogramView+Kingfisher.swift index 8494a8603..c0993cd67 100644 --- a/Sources/Extensions/TVMonogramView+Kingfisher.swift +++ b/Sources/Extensions/TVMonogramView+Kingfisher.swift @@ -129,8 +129,6 @@ extension KingfisherWrapper where Base: TVMonogramView { case .failure: if let image = options.onFailureImage { self.base.image = image - } else { - self.base.image = placeholder } completionHandler?(result) } diff --git a/Sources/Extensions/UIButton+Kingfisher.swift b/Sources/Extensions/UIButton+Kingfisher.swift index 125008265..d1e2dcbf3 100644 --- a/Sources/Extensions/UIButton+Kingfisher.swift +++ b/Sources/Extensions/UIButton+Kingfisher.swift @@ -165,8 +165,6 @@ extension KingfisherWrapper where Base: UIButton { case .failure: if let image = options.onFailureImage { self.base.setImage(image, for: state) - } else { - self.base.setImage(placeholder, for: state) } completionHandler?(result) } diff --git a/Sources/Extensions/WKInterfaceImage+Kingfisher.swift b/Sources/Extensions/WKInterfaceImage+Kingfisher.swift index d94da0129..a24feeb30 100644 --- a/Sources/Extensions/WKInterfaceImage+Kingfisher.swift +++ b/Sources/Extensions/WKInterfaceImage+Kingfisher.swift @@ -159,8 +159,6 @@ extension KingfisherWrapper where Base: WKInterfaceImage { case .failure: if let image = options.onFailureImage { self.base.setImage(image) - } else { - self.base.setImage(placeholder) } completionHandler?(result) }