Skip to content

Commit bc234fb

Browse files
format fix 1
1 parent eb6877b commit bc234fb

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

OptimizelySDK.Tests/CmabTests/OptimizelyUserContextCmabTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ private void ConfigureCmabExperiment(ProjectConfig config,
507507
Assert.IsNotNull(experiment, $"Experiment {experimentKey} should exist for CMAB tests.");
508508

509509
experiment.Cmab = new Entity.Cmab(attributeList, trafficAllocation);
510-
510+
511511
config.ExperimentIdMap[experiment.Id] = experiment;
512512
if (config.ExperimentKeyMap.ContainsKey(experiment.Key))
513513
{

OptimizelySDK/Bucketing/DecisionService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public class DecisionService
5858
#if USE_CMAB
5959
private ICmabService CmabService;
6060
#endif
61-
61+
6262
/// <summary>
63-
/// Associative array of user IDs to an associative array
64-
/// of experiments to variations.This contains all the forced variations
65-
/// set by the user by calling setForcedVariation (it is not the same as the
66-
/// whitelisting forcedVariations data structure in the Experiments class).
63+
/// Associative array of user IDs to an associative array
64+
/// of experiments to variations.This contains all the forced variations
65+
/// set by the user by calling setForcedVariation (it is not the same as the
66+
/// whitelisting forcedVariations data structure in the Experiments class).
6767
/// </summary>
6868
#if NET35
6969
private Dictionary<string, Dictionary<string, string>> ForcedVariationMap;
@@ -254,7 +254,7 @@ public virtual Result<VariationDecisionResult> GetVariation(Experiment experimen
254254
Logger.Log(LogLevel.INFO,
255255
"This decision will not be saved since the UserProfileService is null.");
256256
}
257-
257+
258258
return Result<VariationDecisionResult>.NewResult(
259259
new VariationDecisionResult(variation), reasons);
260260
}
@@ -815,13 +815,13 @@ public virtual Result<FeatureDecision> GetVariationForFeatureExperiment(
815815
decisionVariation = variationResult?.Variation;
816816
#if USE_CMAB
817817
cmabUuid = variationResult?.CmabUuid;
818-
818+
819819
if (variationResult?.CmabError == true)
820820
{
821821
Logger.Log(LogLevel.ERROR,
822822
reasons.AddInfo(
823823
$"Failed to fetch CMAB decision for user \"{userId}\" in experiment \"{experiment.Key}\" of feature \"{featureFlag.Key}\"."));
824-
824+
825825
var errorDecision = new FeatureDecision(experiment, null,
826826
FeatureDecision.DECISION_SOURCE_FEATURE_TEST, null, error: true);
827827
return Result<FeatureDecision>.NewResult(errorDecision, reasons);

OptimizelySDK/Optimizely.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,20 +1045,20 @@ internal Dictionary<string, OptimizelyDecision> DecideForKeys(OptimizelyUserCont
10451045
{
10461046
var includeReasons = allOptions.Contains(OptimizelyDecideOption.INCLUDE_REASONS);
10471047
var reasonsToReport = decisionReasons.ToReport(includeReasons).ToArray();
1048-
10491048
var errorDecision = OptimizelyDecision.NewErrorDecision(
10501049
key,
10511050
user,
10521051
reasonsToReport,
10531052
ErrorHandler,
10541053
Logger
10551054
);
1056-
1055+
10571056
if (!allOptions.Contains(OptimizelyDecideOption.ENABLED_FLAGS_ONLY) ||
10581057
errorDecision.Enabled)
10591058
{
10601059
decisionDictionary.Add(key, errorDecision);
10611060
}
1061+
10621062
continue;
10631063
}
10641064

0 commit comments

Comments
 (0)