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)