Remove redundant returns.

This commit is contained in:
Gary Gregory 2020-11-23 12:14:22 -05:00 committed by Gary Gregory
parent 712148ecc3
commit 75f9adea87
2 changed files with 2 additions and 4 deletions

View File

@ -57,8 +57,8 @@ public class WinHttpClients {
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;

View File

@ -121,12 +121,10 @@ public class BasicAuthCache implements AuthCache {
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;