mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-03-09 02:10:03 +00:00
Remove redundant returns.
This commit is contained in:
parent
712148ecc3
commit
75f9adea87
@ -57,8 +57,8 @@ public static boolean isWinAuthAvailable() {
|
||||
if (os != null && os.contains("windows")) {
|
||||
try {
|
||||
return Sspi.MAX_TOKEN_SIZE > 0;
|
||||
} catch (final Exception ignore) { // Likely ClassNotFound
|
||||
return false;
|
||||
} catch (final Exception ignore) {
|
||||
// Likely ClassNotFound
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -121,12 +121,10 @@ public AuthScheme get(final HttpHost host) {
|
||||
if (LOG.isWarnEnabled()) {
|
||||
LOG.warn("Unexpected I/O error while de-serializing auth scheme", ex);
|
||||
}
|
||||
return null;
|
||||
} catch (final ClassNotFoundException ex) {
|
||||
if (LOG.isWarnEnabled()) {
|
||||
LOG.warn("Unexpected error while de-serializing auth scheme", ex);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user