From f1f4060dca0ece1b5036ab76d3c5864139e7cac8 Mon Sep 17 00:00:00 2001 From: osama alhour Date: Mon, 12 Sep 2022 17:16:49 +0300 Subject: [PATCH] make code more readable by nullifying handler --- Store/TSAppTableViewController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Store/TSAppTableViewController.m b/Store/TSAppTableViewController.m index 1e3e98b..c82713d 100644 --- a/Store/TSAppTableViewController.m +++ b/Store/TSAppTableViewController.m @@ -51,9 +51,7 @@ if (!didOpen) { NSString *failMessage = [NSString stringWithFormat: @"Failed to open %@", appId]; UIAlertController* didFailController = [UIAlertController alertControllerWithTitle:failMessage message: nil preferredStyle:UIAlertControllerStyleAlert]; - UIAlertAction* cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action) - { - }]; + UIAlertAction* cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]; [didFailController addAction: cancelAction]; [self presentViewController:didFailController animated:YES completion:nil];