Skip to content

Commit 83c28f1

Browse files
committed
cleanup
1 parent 5d5050a commit 83c28f1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/MIDebugEngine/AD7.Impl/AD7StackFrame.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Microsoft.MIDebugEngine
1414
{
1515
// Represents a logical stack frame on the thread stack.
1616
// Also implements the IDebugExpressionContext interface, which allows expression evaluation and watch windows.
17-
internal class AD7StackFrame : IDebugStackFrame2, IDebugExpressionContext2
17+
internal sealed class AD7StackFrame : IDebugStackFrame2, IDebugExpressionContext2
1818
{
1919
public AD7Engine Engine { get; private set; }
2020
public AD7Thread Thread { get; private set; }
@@ -53,11 +53,7 @@ public AD7StackFrame(AD7Engine engine, AD7Thread thread, ThreadContext threadCon
5353
if (_textPosition != null)
5454
{
5555
_documentCxt = new AD7DocumentContext(_textPosition, _codeCxt, this.Engine.DebuggedProcess);
56-
57-
if (_codeCxt != null)
58-
{
59-
_codeCxt.SetDocumentContext(_documentCxt);
60-
}
56+
_codeCxt?.SetDocumentContext(_documentCxt);
6157
}
6258
}
6359

0 commit comments

Comments
 (0)