Skip to content

Commit

Permalink
Merge pull request icsharpcode#509 from purenewman/patch-2
Browse files Browse the repository at this point in the history
Fixed incorrect null check
  • Loading branch information
Mike Krüger committed Dec 31, 2015
2 parents 67fb4fd + 779dc8f commit 554f008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool TryRemoveTransparentIdentifier(QueryExpression query, QueryFromClause fromC

Expression nae2 = match.Get<Expression>("nae2").SingleOrDefault();
string nae2Name = ExtractExpressionName(ref nae2);
if (nae1Name == null)
if (nae2Name == null)
return false;

bool introduceLetClause = true;
Expand Down Expand Up @@ -213,4 +213,4 @@ string ExtractExpressionName(ref Expression expr)
return null;
}
}
}
}

0 comments on commit 554f008

Please sign in to comment.