Skip to content

Commit

Permalink
[jivesoftware#3] fixed code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dodatko committed Jul 27, 2018
1 parent f6b855a commit 3c402e2
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,8 @@ - (JAHPDidCancelAuthenticationChallengeHandler)authenticatingHTTPProtocol:(JAHPA
self.authAlertView.alertViewStyle = UIAlertViewStyleLoginAndPasswordInput;
[self.authAlertView show];

// JAHPDidCancelAuthenticationChallengeHandler logCancelEvent =
// ^void(JAHPAuthenticatingHTTPProtocol * __nonnull authenticatingHTTPProtocol,
// NSURLAuthenticationChallenge * __nonnull challenge)
// {
// NSLog(@"=== JAHPDidCancelAuthenticationChallengeHandler")
// }
//return logCancelEvent;

return nil;

} // authenticatingHTTPProtocol:didReceiveAuthenticationChallenge:

- (void)authenticatingHTTPProtocol:(JAHPAuthenticatingHTTPProtocol *)authenticatingHTTPProtocol
Expand Down Expand Up @@ -163,7 +156,6 @@ - (JAHPDidCancelAuthenticationChallengeHandler)authenticatingHTTPProtocol:(JAHPA
-(void)handleAuthChallenge:(NSURLAuthenticationChallenge*)challenge
forProtocol:(JAHPAuthenticatingHTTPProtocol*)authenticatingHTTPProtocol
{
// TODO: maybe fix leaking `self`
NSInteger cancelButtonIndex = self.authAlertView.cancelButtonIndex;

[self.authAlertView dismissWithClickedButtonIndex: cancelButtonIndex
Expand Down

0 comments on commit 3c402e2

Please sign in to comment.