We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c25188 commit 6600b12Copy full SHA for 6600b12
src/AutoMapper.Extensions.ExpressionMapping/XpressionMapperVisitor.cs
@@ -234,17 +234,14 @@ protected override Expression VisitUnary(UnaryExpression node)
234
Expression DoVisitUnary(Expression updated)
235
{
236
if (this.TypeMappings.TryGetValue(node.Type, out Type mappedType))
237
- {
238
- Expression exp = Expression.MakeUnary
+ return Expression.MakeUnary
239
(
240
node.NodeType,
241
updated != node.Operand
242
? updated
243
: node.Operand,
244
mappedType
245
);
246
- return exp;
247
- }
248
249
return updated != node.Operand
250
? node.Update(updated)
0 commit comments