From fb5dda5677fdc2385e6390f52893878446188f21 Mon Sep 17 00:00:00 2001 From: mobiledev7 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 07fd83d..f5f004b 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)