@@ -915,10 +915,7 @@ ProjectConfig config
915
915
var infoMessage = $ "Holdout \" { holdout . Key } \" is not running.";
916
916
Logger . Log ( LogLevel . INFO , infoMessage ) ;
917
917
reasons . AddInfo ( infoMessage ) ;
918
- return Result < FeatureDecision > . NewResult (
919
- new FeatureDecision ( null , null , FeatureDecision . DECISION_SOURCE_HOLDOUT ) ,
920
- reasons
921
- ) ;
918
+ return Result < FeatureDecision > . NullResult ( reasons ) ;
922
919
}
923
920
924
921
var audienceResult = ExperimentUtils . DoesUserMeetAudienceConditions (
@@ -934,10 +931,7 @@ ProjectConfig config
934
931
if ( ! audienceResult . ResultObject )
935
932
{
936
933
reasons . AddInfo ( $ "User \" { userId } \" does not meet conditions for holdout ({ holdout . Key } ).") ;
937
- return Result < FeatureDecision > . NewResult (
938
- new FeatureDecision ( null , null , FeatureDecision . DECISION_SOURCE_HOLDOUT ) ,
939
- reasons
940
- ) ;
934
+ return Result < FeatureDecision > . NullResult ( reasons ) ;
941
935
}
942
936
943
937
var attributes = user . GetAttributes ( ) ;
@@ -955,8 +949,7 @@ ProjectConfig config
955
949
}
956
950
957
951
reasons . AddInfo ( $ "User \" { userId } \" is not bucketed into holdout variation \" { holdout . Key } \" .") ;
958
-
959
- return Result < FeatureDecision > . NewResult ( null , reasons ) ;
952
+ return Result < FeatureDecision > . NullResult ( reasons ) ;
960
953
}
961
954
/// <summary>
962
955
/// Finds a validated forced decision.
0 commit comments