Skip to content

Commit 99b9104

Browse files
author
leminh98
committed
address code review
1 parent 8deeb3d commit 99b9104

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Microsoft.Azure.Cosmos/src/Linq/ExpressionToSQL.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,6 @@ private static Collection VisitGroupBy(Type returnElementType, ReadOnlyCollectio
17941794

17951795
SqlGroupByClause groupby;
17961796
ParameterExpression parameterExpression;
1797-
Binding binding;
17981797
switch (keySelectorLambda.Body.NodeType)
17991798
{
18001799
case ExpressionType.Parameter:
@@ -1854,7 +1853,7 @@ private static Collection VisitGroupBy(Type returnElementType, ReadOnlyCollectio
18541853
context.CurrentQuery = context.CurrentQuery.AddGroupByClause(groupby, context);
18551854

18561855
// Bind the alias
1857-
binding = new Binding(parameterExpression, collection.inner, isInCollection: false, isInputParameter: true);
1856+
Binding binding = new Binding(parameterExpression, collection.inner, isInCollection: false, isInputParameter: true);
18581857
context.CurrentQuery.GroupByParameter.Add(binding);
18591858

18601859
// The alias for the key in the value selector lambda is the first arguemt lambda - we bound it to the parameter expression, which already has substitution

0 commit comments

Comments
 (0)