1
0
mirror of https://github.com/google/nomulus synced 2026-01-06 21:47:31 +00:00

Fix else if on separate line causing compilation warning (#1715)

This commit is contained in:
Ben McIlwain
2022-07-26 17:03:47 -04:00
committed by GitHub
parent 343263cc19
commit 0f1a257a3d

View File

@@ -206,9 +206,8 @@ public final class PublishDnsUpdatesAction implements Runnable, Callable<Void> {
// 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.