Skip to content

Commit 339e78e

Browse files
committed
cleanup
1 parent c305bae commit 339e78e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# 1.1.1
2+
23
- Listen to Console.WriteLine
34
- Auto start listening on revit start
45

source/RevitDevTool/ViewModel/TraceOutputVm.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
using Serilog.Events;
1111
using Serilog.Sinks.RichTextBox.Themes;
1212

13-
// ReSharper disable ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
14-
// ReSharper disable NullCoalescingConditionIsAlwaysNotNullAccordingToAPIContract
15-
1613
namespace RevitDevTool.ViewModel;
1714

1815
public partial class TraceOutputVm : ObservableObject, IDisposable
@@ -21,7 +18,7 @@ public partial class TraceOutputVm : ObservableObject, IDisposable
2118

2219
private readonly LoggingLevelSwitch _levelSwitch;
2320
private readonly SerilogTraceListener _traceListener;
24-
private ConsoleRedirector _consoleRedirector;
21+
private readonly ConsoleRedirector _consoleRedirector;
2522

2623
[ObservableProperty] private bool _isStarted = true;
2724
[ObservableProperty] private LogEventLevel _logLevel = LogEventLevel.Debug;
@@ -114,7 +111,7 @@ [RelayCommand] private static void ClearGeometry()
114111

115112
public void Dispose()
116113
{
117-
_consoleRedirector?.Dispose();
114+
_consoleRedirector.Dispose();
118115
GC.SuppressFinalize(this);
119116
}
120117
}

0 commit comments

Comments
 (0)