Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Oct 24, 2024
1 parent 8c25ee0 commit 559f7aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/deployment/DeploymentRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/flag/FlagConfigUpdater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -326,3 +325,4 @@ internal class FlagConfigFallbackRetryWrapper(
}, reconnIntervalRange.random(), TimeUnit.MILLISECONDS)
}
}

0 comments on commit 559f7aa

Please sign in to comment.