Skip to content

Commit 3e31922

Browse files
Update DecisionInfo.swift
1 parent 55d698e commit 3e31922

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/Implementation/DecisionInfo.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,17 @@ struct DecisionInfo {
140140
decisionInfo[Constants.DecisionInfoKeys.variationKey] = variation?.key ?? NSNull() // keep key in the map even with nil value
141141
decisionInfo[Constants.DecisionInfoKeys.ruleKey] = ruleKey ?? NSNull() //
142142
decisionInfo[Constants.DecisionInfoKeys.reasons] = reasons
143-
}
144-
145-
decisionInfo[Constants.DecisionInfoKeys.decisionEventDispatched] = decisionEventDispatched
143+
decisionInfo[Constants.DecisionInfoKeys.decisionEventDispatched] = decisionEventDispatched
146144

147-
if let expId = experiment?.id {
148-
decisionInfo[Constants.ExperimentDecisionInfoKeys.experimentId] = expId
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+
}
149151
}
150152

151-
if let varId = variation?.id {
152-
decisionInfo[Constants.ExperimentDecisionInfoKeys.variationId] = varId
153-
}
153+
154154
return decisionInfo
155155
}
156156

0 commit comments

Comments
 (0)