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")) { if (os != null && os.contains("windows")) {
try { try {
return Sspi.MAX_TOKEN_SIZE > 0; return Sspi.MAX_TOKEN_SIZE > 0;
} catch (final Exception ignore) { // Likely ClassNotFound } catch (final Exception ignore) {
return false; // Likely ClassNotFound
} }
} }
return false; return false;

View File

@ -121,12 +121,10 @@ public class BasicAuthCache implements AuthCache {
if (LOG.isWarnEnabled()) { if (LOG.isWarnEnabled()) {
LOG.warn("Unexpected I/O error while de-serializing auth scheme", ex); LOG.warn("Unexpected I/O error while de-serializing auth scheme", ex);
} }
return null;
} catch (final ClassNotFoundException ex) { } catch (final ClassNotFoundException ex) {
if (LOG.isWarnEnabled()) { if (LOG.isWarnEnabled()) {
LOG.warn("Unexpected error while de-serializing auth scheme", ex); LOG.warn("Unexpected error while de-serializing auth scheme", ex);
} }
return null;
} }
} }
return null; return null;