mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 15:42:35 +08:00 
			
		
		
		
	make code more readable by nullifying handler
This commit is contained in:
		
							parent
							
								
									736a467588
								
							
						
					
					
						commit
						f1f4060dca
					
				@ -51,9 +51,7 @@
 | 
				
			|||||||
    if (!didOpen) {
 | 
					    if (!didOpen) {
 | 
				
			||||||
        NSString *failMessage = [NSString stringWithFormat: @"Failed to open %@", appId];
 | 
					        NSString *failMessage = [NSString stringWithFormat: @"Failed to open %@", appId];
 | 
				
			||||||
        UIAlertController* didFailController = [UIAlertController alertControllerWithTitle:failMessage message: nil preferredStyle:UIAlertControllerStyleAlert];
 | 
					        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];
 | 
					        [didFailController addAction: cancelAction];
 | 
				
			||||||
        [self presentViewController:didFailController animated:YES completion:nil];
 | 
					        [self presentViewController:didFailController animated:YES completion:nil];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user