From bae0423ac30242bce8c126588d08e17a5d431292 Mon Sep 17 00:00:00 2001 From: TL Date: Thu, 21 Mar 2019 16:30:30 +0800 Subject: [PATCH] Fix no delete action https://github.com/sergdort/CleanArchitectureRxSwift/issues/61 --- .../Scenes/EditPost/EditPostViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CleanArchitectureRxSwift/Scenes/EditPost/EditPostViewController.swift b/CleanArchitectureRxSwift/Scenes/EditPost/EditPostViewController.swift index 07fd83dc..f5f004bd 100644 --- a/CleanArchitectureRxSwift/Scenes/EditPost/EditPostViewController.swift +++ b/CleanArchitectureRxSwift/Scenes/EditPost/EditPostViewController.swift @@ -24,7 +24,7 @@ final class EditPostViewController: UIViewController { preferredStyle: .alert ) let yesAction = UIAlertAction(title: "Yes", style: .destructive, handler: { _ -> () in observer.onNext(()) }) - let noAction = UIAlertAction(title: "No", style: .cancel, handler: { _ -> () in observer.onNext(()) }) + let noAction = UIAlertAction(title: "No", style: .cancel, handler: nil) alert.addAction(yesAction) alert.addAction(noAction)