Skip to content

Commit

Permalink
fix stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Turtsevich committed Apr 11, 2024
1 parent dab370e commit f2dae27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProjectionTools/Expressions/ReplaceParameterVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ protected override Expression VisitParameter(ParameterExpression parameterExpres
{
if (parameterExpression == _parameter)
{
return Visit(_replacement);
return _replacement;
}

return base.VisitParameter(parameterExpression)!;
return parameterExpression;
}
}

0 comments on commit f2dae27

Please sign in to comment.