Skip to content

Commit 6d2e9bf

Browse files
committed
Fix lint whitespace errors
1 parent 1933001 commit 6d2e9bf

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

OptimizelySDK.Tests/EventTests/EventFactoryTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public void TestCreateImpressionEventNoAttributesEU()
153153
{
154154
{ "Content-Type", "application/json" },
155155
});
156-
156+
157157
Config.Region = "EU";
158158
var impressionEvent = UserEventFactory.CreateImpressionEvent(
159159
Config, Config.GetExperimentFromKey("test_experiment"), "7722370027", TestUserId,
@@ -166,7 +166,7 @@ public void TestCreateImpressionEventNoAttributesEU()
166166

167167
Assert.IsTrue(TestData.CompareObjects(expectedLogEvent, logEvent));
168168
}
169-
169+
170170
[Test]
171171
public void TestCreateImpressionEventNoAttributesInvalid()
172172
{
@@ -254,7 +254,7 @@ public void TestCreateImpressionEventNoAttributesInvalid()
254254
{
255255
{ "Content-Type", "application/json" },
256256
});
257-
257+
258258
Config.Region = "ZZ";
259259
var impressionEvent = UserEventFactory.CreateImpressionEvent(
260260
Config, Config.GetExperimentFromKey("test_experiment"), "7722370027", TestUserId,
@@ -264,10 +264,10 @@ public void TestCreateImpressionEventNoAttributesInvalid()
264264

265265
TestData.ChangeGUIDAndTimeStamp(expectedLogEvent.Params, impressionEvent.Timestamp,
266266
Guid.Parse(impressionEvent.UUID));
267-
267+
268268
Assert.IsTrue(TestData.CompareObjects(expectedLogEvent, logEvent));
269269
}
270-
270+
271271
[Test]
272272
public void TestCreateImpressionEventNoAttributes()
273273
{
@@ -958,7 +958,7 @@ public void TestCreateConversionEventNoAttributesNoValue()
958958

959959
Assert.IsTrue(TestData.CompareObjects(expectedEvent, logEvent));
960960
}
961-
961+
962962
[Test]
963963
public void TestCreateConversionEventNoAttributesNoValueEU()
964964
{
@@ -1040,7 +1040,7 @@ public void TestCreateConversionEventNoAttributesNoValueEU()
10401040

10411041
Assert.IsTrue(TestData.CompareObjects(expectedEvent, logEvent));
10421042
}
1043-
1043+
10441044
[Test]
10451045
public void TestCreateConversionEventNoAttributesNoValueInvalid()
10461046
{

OptimizelySDK/Event/Builder/EventBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public virtual LogEvent CreateConversionEvent(ProjectConfig config, string event
269269

270270
var conversionParams =
271271
GetImpressionOrConversionParamsWithCommonParams(commonParams, conversionOnlyParams);
272-
272+
273273
var region = !string.IsNullOrEmpty(config.Region) ? config.Region: "US";
274274

275275
return new LogEvent(EventFactory.EventEndpoints[region], conversionParams, HTTP_VERB, HTTP_HEADERS);

OptimizelySDK/Event/Entity/EventContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class EventContext
4040

4141
[JsonProperty("anonymize_ip")]
4242
public bool AnonymizeIP { get; protected set; }
43-
43+
4444
[JsonProperty("region")]
4545
public string Region { get; protected set; }
4646

@@ -78,7 +78,7 @@ public Builder WithAnonymizeIP(bool anonymizeIP)
7878
AnonymizeIP = anonymizeIP;
7979
return this;
8080
}
81-
81+
8282
public Builder WithRegion(string region)
8383
{
8484
Region = region;

OptimizelySDK/Event/EventFactory.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public static LogEvent CreateLogEvent(UserEvent[] userEvents, ILogger logger)
6969

7070
var visitors = new List<Visitor>(userEvents.Count());
7171

72-
7372
// Default to US region
7473
string region = "US";
7574

@@ -90,7 +89,7 @@ public static LogEvent CreateLogEvent(UserEvent[] userEvents, ILogger logger)
9089
}
9190

9291
var userContext = userEvent.Context;
93-
92+
9493
// Get region from the event's context, default to US if not specified
9594
region = !string.IsNullOrEmpty(userContext.Region) ? userContext.Region : "US";
9695

@@ -117,7 +116,7 @@ public static LogEvent CreateLogEvent(UserEvent[] userEvents, ILogger logger)
117116

118117
// Use the region to determine the endpoint URL, falling back to US if the region is not found or not supported
119118
string endpointUrl = EventEndpoints["US"]; // Default to US endpoint
120-
119+
121120
// Only try to use the region-specific endpoint if it's a supported region
122121
if (SupportedRegions.Contains(region) && EventEndpoints.ContainsKey(region))
123122
{

OptimizelySDK/ProjectConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public interface ProjectConfig
312312
/// Returns the datafile corresponding to ProjectConfig
313313
/// </summary>
314314
string ToDatafile();
315-
315+
316316
/// <summary>
317317
/// Returns the datafile region to ProjectConfig
318318
/// </summary>

0 commit comments

Comments
 (0)