From eea6b26bb6a5c281983389c83d76ace6f58ccf94 Mon Sep 17 00:00:00 2001 From: Sudiksha Nanda Date: Fri, 11 Sep 2020 12:09:59 +0100 Subject: [PATCH] Checkstyle --- .../com/palantir/leader/health/LeaderElectionHealthCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leader-election-impl/src/main/java/com/palantir/leader/health/LeaderElectionHealthCheck.java b/leader-election-impl/src/main/java/com/palantir/leader/health/LeaderElectionHealthCheck.java index f3017683c33..2cf1d258c96 100644 --- a/leader-election-impl/src/main/java/com/palantir/leader/health/LeaderElectionHealthCheck.java +++ b/leader-election-impl/src/main/java/com/palantir/leader/health/LeaderElectionHealthCheck.java @@ -51,7 +51,7 @@ private double fiveMinuteRate(LeaderElectionServiceMetrics leaderElectionRateFor private boolean isHealthCheckDeactivated() { healthCheckDeactivated.compareAndSet(true, - (Duration.between(timeCreated, Instant.now()).compareTo(HEALTH_CHECK_DEACTIVATION_PERIOD) < 0)); + Duration.between(timeCreated, Instant.now()).compareTo(HEALTH_CHECK_DEACTIVATION_PERIOD) < 0); return healthCheckDeactivated.get(); }