Skip to content

Commit f9f3f3f

Browse files
revert: auto-formatting
I want this reference PR to be clear about what needs changing.
1 parent dd072b9 commit f9f3f3f

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

OptimizelySDK/Optimizely.cs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ public Optimizely(ProjectConfigManager configManager,
223223

224224
if (ProjectConfigManager.SdkKey != null)
225225
{
226-
NotificationCenterRegistry.GetNotificationCenter(configManager.SdkKey, logger)?.
227-
AddNotification(NotificationCenter.NotificationType.OptimizelyConfigUpdate,
226+
NotificationCenterRegistry.GetNotificationCenter(configManager.SdkKey, logger)
227+
?.AddNotification(NotificationCenter.NotificationType.OptimizelyConfigUpdate,
228228
() =>
229229
{
230230
projectConfig = ProjectConfigManager.CachedProjectConfig;
@@ -268,9 +268,9 @@ private void InitializeComponents(IEventDispatcher eventDispatcher = null,
268268
Logger);
269269
DefaultDecideOptions = defaultDecideOptions ?? new OptimizelyDecideOption[] { };
270270
#if USE_ODP
271-
OdpManager = odpManager ?? new OdpManager.Builder().WithErrorHandler(errorHandler).
272-
WithLogger(logger).
273-
Build();
271+
OdpManager = odpManager ?? new OdpManager.Builder().WithErrorHandler(errorHandler)
272+
.WithLogger(logger)
273+
.Build();
274274
#endif
275275
}
276276

@@ -441,8 +441,8 @@ private Variation GetVariation(string experimentKey, string userId, ProjectConfi
441441
userAttributes = userAttributes ?? new UserAttributes();
442442

443443
var userContext = CreateUserContextCopy(userId, userAttributes);
444-
var variation = DecisionService.GetVariation(experiment, userContext, config)?.
445-
ResultObject;
444+
var variation = DecisionService.GetVariation(experiment, userContext, config)
445+
?.ResultObject;
446446
var decisionInfo = new Dictionary<string, object>
447447
{
448448
{ "experimentKey", experimentKey }, { "variationKey", variation?.Key },
@@ -552,8 +552,8 @@ public virtual bool IsFeatureEnabled(string featureKey, string userId,
552552
var sourceInfo = new Dictionary<string, string>();
553553
var decision = DecisionService.GetVariationForFeature(featureFlag,
554554
CreateUserContextCopy(userId, userAttributes),
555-
config).
556-
ResultObject;
555+
config)
556+
.ResultObject;
557557
var variation = decision?.Variation;
558558
var decisionSource = decision?.Source ?? FeatureDecision.DECISION_SOURCE_ROLLOUT;
559559

@@ -664,8 +664,8 @@ public virtual T GetFeatureVariableValueForType<T>(string featureKey, string var
664664
var variableValue = featureVariable.DefaultValue;
665665
var decision = DecisionService.GetVariationForFeature(featureFlag,
666666
CreateUserContextCopy(userId, userAttributes),
667-
config).
668-
ResultObject;
667+
config)
668+
.ResultObject;
669669

670670
if (decision?.Variation != null)
671671
{
@@ -980,9 +980,9 @@ OptimizelyDecideOption[] options
980980
featureEnabled);
981981
}
982982

983-
var reasonsToReport = decisionReasons.
984-
ToReport(allOptions.Contains(OptimizelyDecideOption.INCLUDE_REASONS)).
985-
ToArray();
983+
var reasonsToReport = decisionReasons
984+
.ToReport(allOptions.Contains(OptimizelyDecideOption.INCLUDE_REASONS))
985+
.ToArray();
986986
var variationKey = decision?.Variation?.Key;
987987

988988
// TODO: add ruleKey values when available later. use a copy of experimentKey until then.
@@ -1349,8 +1349,7 @@ List<OdpSegmentOption> segmentOptions
13491349

13501350
if (config == null)
13511351
{
1352-
Logger.Log(LogLevel.ERROR,
1353-
"Datafile has invalid format. Failing 'FetchQualifiedSegments'.");
1352+
Logger.Log(LogLevel.ERROR, "Datafile has invalid format. Failing 'FetchQualifiedSegments'.");
13541353
return null;
13551354
}
13561355

@@ -1381,8 +1380,7 @@ internal void IdentifyUser(string userId)
13811380
/// <param name="identifiers">Dictionary for identifiers. The caller must provide at least one key-value pair.</param>
13821381
/// <param name="type">Type of event (defaults to `fullstack`)</param>
13831382
/// <param name="data">Optional event data in a key-value pair format</param>
1384-
public void SendOdpEvent(string action, Dictionary<string, string> identifiers,
1385-
string type = Constants.ODP_EVENT_TYPE,
1383+
public void SendOdpEvent(string action, Dictionary<string, string> identifiers, string type = Constants.ODP_EVENT_TYPE,
13861384
Dictionary<string, object> data = null
13871385
)
13881386
{

0 commit comments

Comments
 (0)