Skip to content

Commit

Permalink
Remove redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup committed Jan 6, 2023
1 parent 014f3bf commit 048402d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -13,7 +13,7 @@ internal class MultiDimensionalArrayEquivalencyStep : IEquivalencyStep
{
public EquivalencyResult Handle(Comparands comparands, IEquivalencyValidationContext context, IEquivalencyValidator nestedValidator)
{
if (comparands.Expectation is not Array expectationAsArray || expectationAsArray?.Rank is 1)
if (comparands.Expectation is not Array expectationAsArray || expectationAsArray.Rank == 1)
{
return EquivalencyResult.ContinueWithNext;
}
Expand Down

0 comments on commit 048402d

Please sign in to comment.