Skip to content

Commit 921d282

Browse files
committed
Fix formatting
1 parent 2e9776c commit 921d282

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Sentry/HubExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public static void AddBreadcrumb(
155155
}
156156

157157
hub.ConfigureScope(
158-
static(s, arg) => s.AddBreadcrumb(arg.breadcrumb, arg.hint ?? new SentryHint()),
158+
static (s, arg) => s.AddBreadcrumb(arg.breadcrumb, arg.hint ?? new SentryHint()),
159159
(breadcrumb, hint));
160160
}
161161

@@ -242,14 +242,14 @@ internal static ITransactionTracer StartTransaction(
242242
_ => hub.StartTransaction(context, customSamplingContext)
243243
};
244244

245-
internal static ITransactionTracer ? GetTransaction(this IHub hub)
245+
internal static ITransactionTracer? GetTransaction(this IHub hub)
246246
{
247247
if (hub is Hub fullHub)
248248
{
249249
return fullHub.ScopeManager.GetCurrent().Key.Transaction;
250250
}
251251

252-
ITransactionTracer ? transaction = null;
252+
ITransactionTracer? transaction = null;
253253
hub.ConfigureScope(scope => transaction = scope.Transaction);
254254
return transaction;
255255
}

test/Sentry.Tests/SentrySdkTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public void ConfigureScope_Sync_CallbackNeverInvoked()
440440
public void ConfigureScope_SyncWithArg_CallbackNeverInvoked()
441441
{
442442
var invoked = false;
443-
SentrySdk.ConfigureScope((_,_) => invoked = true, "arg");
443+
SentrySdk.ConfigureScope((_, _) => invoked = true, "arg");
444444
Assert.False(invoked);
445445
}
446446

@@ -458,7 +458,7 @@ public void ConfigureScope_SyncWithArg_ArgIsUsed()
458458
const string key = "key";
459459
const string arg = "arg";
460460

461-
SentrySdk.ConfigureScope((s,a) => s.SetTag(key, a), arg);
461+
SentrySdk.ConfigureScope((s, a) => s.SetTag(key, a), arg);
462462

463463
string actual = null;
464464
SentrySdk.ConfigureScope(s => actual = s.Tags[key]);
@@ -702,7 +702,7 @@ await SentrySdk.ConfigureScopeAsync(_ =>
702702
public async Task ConfigureScope_AsyncWithArg_CallbackNeverInvoked()
703703
{
704704
var invoked = false;
705-
await SentrySdk.ConfigureScopeAsync((_,_) =>
705+
await SentrySdk.ConfigureScopeAsync((_, _) =>
706706
{
707707
invoked = true;
708708
return Task.CompletedTask;

0 commit comments

Comments
 (0)