Put else if on same line to fix build style warning (#935)

* Put else if on same line to fix build style warning
This commit is contained in:
Ben McIlwain 2021-01-21 10:50:29 -05:00 committed by GitHub
parent fcda5d73de
commit 39e7c6a8e5

View file

@ -134,9 +134,8 @@ public class TlsCredentials implements TransportCredentials {
// used as failover
logger.atWarning().log(
"There is no certificate configured for registrar %s.", registrar.getClientId());
}
// Check that the request included the full certificate
else if (!clientCertificate.isPresent()) {
} else if (!clientCertificate.isPresent()) {
// Check that the request included the full certificate
// Log an error and validate using certificate hash instead
// TODO(sarahbot): throw a MissingRegistrarCertificateException once hash is no longer used as
// failover