Skip to content

Commit f7ae8a9

Browse files
committed
chore(server): apply formatter
1 parent bee6921 commit f7ae8a9

File tree

3 files changed

+162
-125
lines changed

3 files changed

+162
-125
lines changed

posthog-server/src/main/java/com/posthog/server/internal/FlagEvaluator.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ internal class FlagEvaluator(
446446
evaluationCache: MutableMap<String, Any?>?,
447447
distinctId: String?,
448448
): Boolean {
449-
val cohortId = property.propertyValue?.toString()
450-
?: throw InconclusiveMatchException("Cohort property missing value")
449+
val cohortId =
450+
property.propertyValue?.toString()
451+
?: throw InconclusiveMatchException("Cohort property missing value")
451452

452453
if (!cohortProperties.containsKey(cohortId)) {
453454
throw InconclusiveMatchException("Can't match cohort without a given cohort property value")
@@ -542,7 +543,9 @@ internal class FlagEvaluator(
542543
flagsByKey
543544
?: throw InconclusiveMatchException("Cannot evaluate flag dependencies without flagsByKey"),
544545
evaluationCache
545-
?: throw InconclusiveMatchException("Cannot evaluate flag dependencies without evaluationCache"),
546+
?: throw InconclusiveMatchException(
547+
"Cannot evaluate flag dependencies without evaluationCache",
548+
),
546549
distinctId
547550
?: throw InconclusiveMatchException("Cannot evaluate flag dependencies without distinctId"),
548551
propertyValues,

0 commit comments

Comments
 (0)