Skip to content

Commit 26daeab

Browse files
committed
formatting
1 parent a2b83fd commit 26daeab

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/PostHog/PostHogClient.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ public bool Capture(
132132
bool sendFeatureFlags)
133133
{
134134
// Check for custom timestamp in properties
135-
var timestamp = properties?.TryGetValue("timestamp", out var timestampValue) == true &&
135+
var timestamp = properties?.TryGetValue("timestamp", out var timestampValue) == true &&
136136
(timestampValue is DateTimeOffset customTimestampOffset || timestampValue is DateTime customTimestamp)
137-
? timestampValue is DateTimeOffset dtOffset ? dtOffset : new DateTimeOffset((DateTime)timestampValue)
138-
: _timeProvider.GetUtcNow();
137+
? timestampValue is DateTimeOffset dtOffset
138+
? dtOffset
139+
: new DateTimeOffset((DateTime)timestampValue)
140+
: _timeProvider.GetUtcNow();
139141

140142
var capturedEvent = new CapturedEvent(
141143
eventName,
@@ -324,7 +326,8 @@ public async Task<bool> IsFeatureEnabledAsync(
324326
{
325327
// We need to fire and forget the compaction because it can be expensive.
326328
_taskScheduler.Run(
327-
() => _featureFlagCalledEventCache.Compact(_options.Value.FeatureFlagSentCacheCompactionPercentage),
329+
() => _featureFlagCalledEventCache.Compact(
330+
_options.Value.FeatureFlagSentCacheCompactionPercentage),
328331
cancellationToken);
329332
}
330333

0 commit comments

Comments
 (0)