From d5f2529b07b47eddad8576bae98f7847140dcdfb Mon Sep 17 00:00:00 2001 From: Weimin Yu Date: Fri, 8 Apr 2022 21:30:22 +0000 Subject: [PATCH] Remove Optional.isEmpty() in code (#1585) * Remove Optional.isEmpty() in code --- core/src/main/java/google/registry/rde/RdeUploadAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/google/registry/rde/RdeUploadAction.java b/core/src/main/java/google/registry/rde/RdeUploadAction.java index c2c585190..f1c6c9af5 100644 --- a/core/src/main/java/google/registry/rde/RdeUploadAction.java +++ b/core/src/main/java/google/registry/rde/RdeUploadAction.java @@ -143,7 +143,7 @@ public final class RdeUploadAction implements Runnable, EscrowTask { // If a prefix is not provided, but we are in SQL mode, try to determine the prefix. This should // only happen when the RDE upload cron job runs to catch up any un-retried (i. e. expected) // RDE failures. - if (prefix.isEmpty() && !tm().isOfy()) { + if (!prefix.isPresent() && !tm().isOfy()) { // The prefix is always in the format of: rde-2022-02-21t00-00-00z-2022-02-21t00-07-33z, where // the first datetime is the watermark and the second one is the time when the RDE beam job // launched. We search for the latest folder that starts with "rde-[watermark]".