From 59abc1d154ac17650fa3f22aa9996f8213565b76 Mon Sep 17 00:00:00 2001 From: Ben McIlwain Date: Thu, 21 Jan 2021 10:50:29 -0500 Subject: [PATCH] Put else if on same line to fix build style warning (#935) * Put else if on same line to fix build style warning --- core/src/main/java/google/registry/flows/TlsCredentials.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/google/registry/flows/TlsCredentials.java b/core/src/main/java/google/registry/flows/TlsCredentials.java index 1364285a9..6d77d95e0 100644 --- a/core/src/main/java/google/registry/flows/TlsCredentials.java +++ b/core/src/main/java/google/registry/flows/TlsCredentials.java @@ -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