From 0f1a257a3d2f055ac701a4344fd50739c93ca3e0 Mon Sep 17 00:00:00 2001 From: Ben McIlwain Date: Tue, 26 Jul 2022 17:03:47 -0400 Subject: [PATCH] Fix else if on separate line causing compilation warning (#1715) --- .../java/google/registry/dns/PublishDnsUpdatesAction.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java b/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java index 73d0a8366..2721494bf 100644 --- a/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java +++ b/core/src/main/java/google/registry/dns/PublishDnsUpdatesAction.java @@ -206,9 +206,8 @@ public final class PublishDnsUpdatesAction implements Runnable, Callable { // Enqueue the single domain and single host separately enqueue(ImmutableList.copyOf(domains), ImmutableList.of()); enqueue(ImmutableList.of(), ImmutableList.copyOf(hosts)); - } - // If the batch only contains 1 name, allow it more retries - else if (retryCount < RETRIES_BEFORE_PERMANENT_FAILURE) { + } else if (retryCount < RETRIES_BEFORE_PERMANENT_FAILURE) { + // If the batch only contains 1 name, allow it more retries throw e; } // If we get here, we should terminate this task as it is likely a perpetually failing task.