Skip to content

Commit 789ecf4

Browse files
committed
refactor: 消除警告信息
1 parent eaad170 commit 789ecf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ private void ResetException()
9999
{
100100
_exception = null;
101101

102-
_currentExceptionPropertyInfo ??= GetType().BaseType!.GetProperty(nameof(CurrentException), BindingFlags.NonPublic | BindingFlags.Instance);
103-
_currentExceptionPropertyInfo?.SetValue(this, null);
102+
_currentExceptionPropertyInfo ??= GetType().BaseType!.GetProperty(nameof(CurrentException), BindingFlags.NonPublic | BindingFlags.Instance)!;
103+
_currentExceptionPropertyInfo.SetValue(this, null);
104104
}
105105

106106
private Exception? _exception = null;

0 commit comments

Comments
 (0)