File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -254,15 +254,18 @@ class DefaultDecisionService: OPTDecisionService {
254
254
continue
255
255
}
256
256
257
- decisionResponse = getVariationForFeatureRollout ( config: config, featureFlag: featureFlag, user: user)
258
-
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) )
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
+ }
265
267
}
268
+
266
269
}
267
270
268
271
// save profile
You can’t perform that action at this time.
0 commit comments