Skip to content

Commit 4369f21

Browse files
update based on review comments
1 parent dacf924 commit 4369f21

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Microsoft.AspNetCore.OData/Query/Expressions/SelectExpandBinder.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,7 @@ private static Expression RemoveNonStructucalProperties(QueryBinderContext conte
487487
}
488488
else if (isPropertyNullable)
489489
{
490-
propertyValue = Expression.Condition(
491-
test: Expression.Equal(propertyValue, Expression.Constant(value: null)),
492-
ifTrue: Expression.Constant(value: null, type: nullablePropertyType),
493-
ifFalse: nullablePropertyValue);
490+
propertyValue = nullablePropertyValue;
494491
}
495492

496493
bindings.Add(Expression.Bind(prop, propertyValue));

0 commit comments

Comments
 (0)