From d4b39565c83c5827a40c523164c123e6dc6605eb Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Wed, 9 Sep 2015 12:19:52 +0200 Subject: [PATCH] Fixes unused warning. --- RxCocoa/OSX/NSImageView+Rx.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxCocoa/OSX/NSImageView+Rx.swift b/RxCocoa/OSX/NSImageView+Rx.swift index b6fe796f2..6b5ab622e 100644 --- a/RxCocoa/OSX/NSImageView+Rx.swift +++ b/RxCocoa/OSX/NSImageView+Rx.swift @@ -33,7 +33,7 @@ extension NSImageView { switch event { case .Next(let value): if let transitionType = transitionType { - if let value = value { + if value != nil { let transition = CATransition() transition.duration = 0.25 transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)