Skip to content

Commit 34ee641

Browse files
committedJun 4, 2025
clean up
1 parent 90655f3 commit 34ee641

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎Sources/Implementation/DecisionInfo.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,8 @@ struct DecisionInfo {
141141
decisionInfo[Constants.DecisionInfoKeys.ruleKey] = ruleKey ?? NSNull() //
142142
decisionInfo[Constants.DecisionInfoKeys.reasons] = reasons
143143
decisionInfo[Constants.DecisionInfoKeys.decisionEventDispatched] = decisionEventDispatched
144-
145-
if let expId = experiment?.id {
146-
decisionInfo[Constants.ExperimentDecisionInfoKeys.experimentId] = expId
147-
}
148-
if let varId = variation?.id {
149-
decisionInfo[Constants.ExperimentDecisionInfoKeys.variationId] = varId
150-
}
144+
decisionInfo[Constants.ExperimentDecisionInfoKeys.experimentId] = experiment?.id ?? NSNull()
145+
decisionInfo[Constants.ExperimentDecisionInfoKeys.variationId] = variation?.id ?? NSNull()
151146
}
152147

153148

0 commit comments

Comments
 (0)