Skip to content

Commit 6600b12

Browse files
committed
cleanup
1 parent 1c25188 commit 6600b12

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/AutoMapper.Extensions.ExpressionMapping/XpressionMapperVisitor.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,14 @@ protected override Expression VisitUnary(UnaryExpression node)
234234
Expression DoVisitUnary(Expression updated)
235235
{
236236
if (this.TypeMappings.TryGetValue(node.Type, out Type mappedType))
237-
{
238-
Expression exp = Expression.MakeUnary
237+
return Expression.MakeUnary
239238
(
240239
node.NodeType,
241240
updated != node.Operand
242241
? updated
243242
: node.Operand,
244243
mappedType
245244
);
246-
return exp;
247-
}
248245

249246
return updated != node.Operand
250247
? node.Update(updated)

0 commit comments

Comments
 (0)