Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1698005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2015-08-26 21:23:47 +00:00
parent 3ccb3eaa62
commit 786da6501f
2 changed files with 3 additions and 6 deletions

View File

@ -202,9 +202,8 @@ public class WindowsNegotiateScheme implements AuthScheme {
failAuthCleanup();
if (ex instanceof Win32Exception) {
throw new AuthenticationException("Authentication Failed", ex);
} else {
throw ex;
}
throw ex;
}
} else if (challenge == null || challenge.isEmpty()) {
failAuthCleanup();
@ -220,9 +219,8 @@ public class WindowsNegotiateScheme implements AuthScheme {
failAuthCleanup();
if (ex instanceof Win32Exception) {
throw new AuthenticationException("Authentication Failed", ex);
} else {
throw ex;
}
throw ex;
}
}
return scheme + " " + response;

View File

@ -74,9 +74,8 @@ public class WinHttpClients {
.build();
return HttpClientBuilder.create()
.setDefaultAuthSchemeRegistry(authSchemeRegistry);
} else {
return HttpClientBuilder.create();
}
return HttpClientBuilder.create();
}
/**