Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaiseD committed Mar 7, 2020
1 parent 1c25188 commit 6600b12
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,14 @@ protected override Expression VisitUnary(UnaryExpression node)
Expression DoVisitUnary(Expression updated)
{
if (this.TypeMappings.TryGetValue(node.Type, out Type mappedType))
{
Expression exp = Expression.MakeUnary
return Expression.MakeUnary
(
node.NodeType,
updated != node.Operand
? updated
: node.Operand,
mappedType
);
return exp;
}

return updated != node.Operand
? node.Update(updated)
Expand Down

0 comments on commit 6600b12

Please sign in to comment.