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:
parent
3ccb3eaa62
commit
786da6501f
|
@ -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;
|
||||
|
|
|
@ -74,9 +74,8 @@ public class WinHttpClients {
|
|||
.build();
|
||||
return HttpClientBuilder.create()
|
||||
.setDefaultAuthSchemeRegistry(authSchemeRegistry);
|
||||
} else {
|
||||
return HttpClientBuilder.create();
|
||||
}
|
||||
return HttpClientBuilder.create();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue