Skip to content

Commit

Permalink
Conditional access qualifier expression is known to be null or not null
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup committed Jul 2, 2023
1 parent 4fdb902 commit aad3a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/FluentAssertions/Numeric/NumericAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public AndConstraint<TAssertions> BeOfType(Type expectedType, string because = "

if (expectedType.IsGenericTypeDefinition && subjectType?.IsGenericType == true)
{
(subjectType?.GetGenericTypeDefinition()).Should().Be(expectedType, because, becauseArgs);
subjectType.GetGenericTypeDefinition().Should().Be(expectedType, because, becauseArgs);
}
else
{
Expand Down

0 comments on commit aad3a74

Please sign in to comment.