Skip to content

Commit ee4ce7d

Browse files
committed
Fix formatting
1 parent ab18778 commit ee4ce7d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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
@@ -443,7 +443,7 @@ public void ConfigureScope_Sync_CallbackNeverInvoked()
443443
public void ConfigureScope_SyncWithArg_CallbackNeverInvoked()
444444
{
445445
var invoked = false;
446-
SentrySdk.ConfigureScope((_,_) => invoked = true, "arg");
446+
SentrySdk.ConfigureScope((_, _) => invoked = true, "arg");
447447
Assert.False(invoked);
448448
}
449449

@@ -461,7 +461,7 @@ public void ConfigureScope_SyncWithArg_ArgIsUsed()
461461
const string key = "key";
462462
const string arg = "arg";
463463

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

466466
string actual = null;
467467
SentrySdk.ConfigureScope(s => actual = s.Tags[key]);
@@ -705,7 +705,7 @@ await SentrySdk.ConfigureScopeAsync(_ =>
705705
public async Task ConfigureScope_AsyncWithArg_CallbackNeverInvoked()
706706
{
707707
var invoked = false;
708-
await SentrySdk.ConfigureScopeAsync((_,_) =>
708+
await SentrySdk.ConfigureScopeAsync((_, _) =>
709709
{
710710
invoked = true;
711711
return Task.CompletedTask;

0 commit comments

Comments
 (0)