From d3cfc2fe25dd92551eb70f294b2e3c8911a52e9e Mon Sep 17 00:00:00 2001 From: Breno Faria Date: Wed, 2 Mar 2022 09:24:12 +0100 Subject: [PATCH] spotless fix... Signed-off-by: Breno Faria --- server/src/main/java/org/opensearch/common/time/EpochTime.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/common/time/EpochTime.java b/server/src/main/java/org/opensearch/common/time/EpochTime.java index 9f417acfcdb17..7894a653492c8 100644 --- a/server/src/main/java/org/opensearch/common/time/EpochTime.java +++ b/server/src/main/java/org/opensearch/common/time/EpochTime.java @@ -128,8 +128,7 @@ public long getFrom(TemporalAccessor temporal) { if (instantSecondsInMillis >= 0) { if (temporal.isSupported(ChronoField.NANO_OF_SECOND)) { return instantSecondsInMillis + (temporal.getLong(ChronoField.NANO_OF_SECOND) / 1_000_000); - } - else { + } else { return instantSecondsInMillis + temporal.getLong(ChronoField.MILLI_OF_SECOND); } } else { // negative timestamp