We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3194f commit 011eb13Copy full SHA for 011eb13
src/DotNext.Threading/Threading/QueuedSynchronizer.DebugSupport.cs
@@ -72,14 +72,13 @@ internal CallerInformationStorage(Func<object> callerInfoProvider)
72
73
internal object? Capture()
74
{
75
- var result = Value;
76
- if (result is null)
+ if (Value is { } result)
77
78
- result = Activity.Current ?? Trace.CorrelationManager.LogicalOperationStack.Peek();
+ Value = null;
79
}
80
else
81
82
- Value = null;
+ result = Activity.Current ?? Trace.CorrelationManager.LogicalOperationStack.Peek();
83
84
85
return result;
0 commit comments