Skip to content

Commit 72ccb38

Browse files
hazzikoskarb
authored andcommitted
Fix typo in last commit
1 parent 678845d commit 72ccb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Linq/ExpressionTransformers/RemoveRedundantCast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public Expression Transform(UnaryExpression expression)
2020
{
2121
if (expression.Type != typeof(object) &&
2222
expression.Type.IsAssignableFrom(expression.Operand.Type) &&
23-
expression.Method != null &&
23+
expression.Method == null &&
2424
!expression.IsLiftedToNull)
2525
{
2626
return expression.Operand;

0 commit comments

Comments
 (0)