Skip to content

Commit 247bdd5

Browse files
andrewimcclementkzu
authored andcommitted
Tidy nullability in MockException.cs.
1 parent fd13831 commit 247bdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Moq/MockException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ protected MockException(
248248
System.Runtime.Serialization.StreamingContext context)
249249
: base(info, context)
250250
{
251-
this.reasons = (MockExceptionReasons)info.GetValue(nameof(this.reasons), typeof(MockExceptionReasons));
251+
this.reasons = (MockExceptionReasons)info.GetValue(nameof(this.reasons), typeof(MockExceptionReasons))!;
252252
}
253253

254254
/// <summary>

0 commit comments

Comments
 (0)