From 559f7aad7ec3b4b1b5f1a56cb5455025353b7125 Mon Sep 17 00:00:00 2001 From: tyiuhc Date: Thu, 24 Oct 2024 15:34:46 -0700 Subject: [PATCH] fix lint --- src/main/kotlin/deployment/DeploymentRunner.kt | 5 ++--- src/main/kotlin/flag/FlagConfigUpdater.kt | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/deployment/DeploymentRunner.kt b/src/main/kotlin/deployment/DeploymentRunner.kt index 4d18175..8ff6a8a 100644 --- a/src/main/kotlin/deployment/DeploymentRunner.kt +++ b/src/main/kotlin/deployment/DeploymentRunner.kt @@ -74,9 +74,8 @@ internal class DeploymentRunner( for (cohortId in cohortIds) { cohortLoader.loadCohort(cohortId).handle { _, exception -> if (exception is CohortTooLargeException) { - Logger.w("Failed to load cohort $cohortId", exception); - } - else if (exception != null) { + Logger.w("Failed to load cohort $cohortId", exception) + } else if (exception != null) { Logger.e("Failed to load cohort $cohortId", exception) } } diff --git a/src/main/kotlin/flag/FlagConfigUpdater.kt b/src/main/kotlin/flag/FlagConfigUpdater.kt index 232cc13..9dc73a2 100644 --- a/src/main/kotlin/flag/FlagConfigUpdater.kt +++ b/src/main/kotlin/flag/FlagConfigUpdater.kt @@ -85,9 +85,8 @@ internal abstract class FlagConfigUpdaterBase( cohortId, cohortLoader.loadCohort(cohortId).handle { _, exception -> if (exception is CohortTooLargeException) { - Logger.w("Failed to load cohort $cohortId", exception); - } - else if (exception != null) { + Logger.w("Failed to load cohort $cohortId", exception) + } else if (exception != null) { Logger.e("Failed to load cohort $cohortId", exception) } flagConfigStorage.putFlagConfig(flagConfig) @@ -326,3 +325,4 @@ internal class FlagConfigFallbackRetryWrapper( }, reconnIntervalRange.random(), TimeUnit.MILLISECONDS) } } + \ No newline at end of file