Skip to content

Commit 9e427fa

Browse files
committed
cleanup
1 parent 07b69f2 commit 9e427fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OptimizelySDK/Optimizely.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ private Variation GetVariation(string experimentKey, string userId, ProjectConfi
378378
Experiment experiment = config.GetExperimentFromKey(experimentKey);
379379
if (experiment.Key == null)
380380
return null;
381-
382381
var variation = DecisionService.GetVariation(experiment, CreateUserContext(userId, userAttributes), config, userAttributes).ResultObject;
383382
var decisionInfo = new Dictionary<string, object>
384383
{
@@ -782,7 +781,7 @@ internal OptimizelyDecision Decide(OptimizelyUserContext user,
782781
var forcedDecisionVariation = user.FindValidatedForcedDecision(decisionContext);
783782
decisionReasons += forcedDecisionVariation.DecisionReasons;
784783

785-
if (forcedDecisionVariation.ResultObject != Result<Variation>.NullResult(null).ResultObject)
784+
if (forcedDecisionVariation.ResultObject != null)
786785
{
787786
decision = new FeatureDecision(null, forcedDecisionVariation.ResultObject, FeatureDecision.DECISION_SOURCE_FEATURE_TEST);
788787
}

0 commit comments

Comments
 (0)