Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1726949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-01-27 07:59:48 +00:00
parent 5929a47ff8
commit 40140009a1
1 changed files with 6 additions and 8 deletions

View File

@ -123,17 +123,15 @@ public class SystemDefaultCredentialsProvider implements CredentialsStore {
final String domain = System.getProperty("http.auth.ntlm.domain");
if (domain != null) {
return new NTCredentials(systemcreds.getUserName(), systemcreds.getPassword(), null, domain);
} else {
}
if (AuthSchemes.NTLM.equalsIgnoreCase(authscope.getScheme())) {
// Domian may be specified in a fully qualified user name
return new NTCredentials(
systemcreds.getUserName(), systemcreds.getPassword(), null, null);
} else {
}
return new UsernamePasswordCredentials(systemcreds.getUserName(), systemcreds.getPassword());
}
}
}
}
return null;
}