Skip to content

Commit d262bdb

Browse files
[FSSDK-11546] format adjustment
1 parent 809d81f commit d262bdb

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

OptimizelySDK/Bucketing/DecisionService.cs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ ProjectConfig config
883883

884884
if (!holdout.IsActivated)
885885
{
886-
reasons.AddInfo("Holdout ({0}) is not running.", holdout.Key);
886+
reasons.AddInfo($"Holdout \"{holdout.Key}\" is not running.");
887887
return Result<FeatureDecision>.NewResult(
888888
new FeatureDecision(null, null, FeatureDecision.DECISION_SOURCE_HOLDOUT),
889889
reasons
@@ -902,11 +902,7 @@ ProjectConfig config
902902

903903
if (!audienceResult.ResultObject)
904904
{
905-
reasons.AddInfo(
906-
"User ({0}) does not meet conditions for holdout ({1}).",
907-
userId,
908-
holdout.Key
909-
);
905+
reasons.AddInfo($"User \"{userId}\" does not meet conditions for holdout ({holdout.Key}).");
910906
return Result<FeatureDecision>.NewResult(
911907
new FeatureDecision(null, null, FeatureDecision.DECISION_SOURCE_HOLDOUT),
912908
reasons
@@ -920,22 +916,14 @@ ProjectConfig config
920916

921917
if (bucketedVariation.ResultObject != null)
922918
{
923-
reasons.AddInfo(
924-
"User ({0}) is bucketed into holdout variation ({1}).",
925-
userId,
926-
bucketedVariation.ResultObject.Key
927-
);
919+
reasons.AddInfo($"User \"{userId}\" is bucketed into holdout variation \"{bucketedVariation.ResultObject.Key}\".");
928920
return Result<FeatureDecision>.NewResult(
929921
new FeatureDecision(holdout, bucketedVariation.ResultObject, FeatureDecision.DECISION_SOURCE_HOLDOUT),
930922
reasons
931923
);
932924
}
933925

934-
reasons.AddInfo(
935-
"User ({0}) is not bucketed into holdout variation ({1}).",
936-
userId,
937-
holdout.Key
938-
);
926+
reasons.AddInfo($"User \"{userId}\" is not bucketed into holdout variation \"{holdout.Key}\".");
939927

940928
return Result<FeatureDecision>.NewResult(
941929
new FeatureDecision(null, null, FeatureDecision.DECISION_SOURCE_HOLDOUT),

0 commit comments

Comments
 (0)