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:
parent
5929a47ff8
commit
40140009a1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue