Skip to content

Commit 58c5c61

Browse files
WIP: Rollout decision added
1 parent 33c176e commit 58c5c61

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Sources/Implementation/DefaultDecisionService.swift

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,15 @@ class DefaultDecisionService: OPTDecisionService {
254254
continue
255255
}
256256

257-
if ignoreUPS {
258-
decisionResponse = getVariationForFeatureRollout(config: config, featureFlag: featureFlag, user: user)
259-
260-
reasons.merge(decisionResponse.reasons)
261-
262-
if let decision = decisionResponse.result {
263-
decisions.append(DecisionResponse(result: decision, reasons: reasons))
264-
} else {
265-
decisions.append(DecisionResponse(result: nil, reasons: reasons))
266-
}
267-
}
257+
decisionResponse = getVariationForFeatureRollout(config: config, featureFlag: featureFlag, user: user)
268258

259+
reasons.merge(decisionResponse.reasons)
260+
261+
if let decision = decisionResponse.result {
262+
decisions.append(DecisionResponse(result: decision, reasons: reasons))
263+
} else {
264+
decisions.append(DecisionResponse(result: nil, reasons: reasons))
265+
}
269266
}
270267

271268
// save profile

0 commit comments

Comments
 (0)