Skip to content
Permalink
Browse files
Remove redundant returns.
  • Loading branch information
garydgregory committed Nov 24, 2020
1 parent 712148e commit 75f9adea87cb5310229e8e2c0db15161343bf11c
Showing 2 changed files with 2 additions and 4 deletions.
@@ -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;

0 comments on commit 75f9ade

Please sign in to comment.