diff options
author | Alex Newman <purenewman@gmail.com> | 2015-12-31 10:38:00 +0300 |
---|---|---|
committer | Alex Newman <purenewman@gmail.com> | 2015-12-31 10:38:00 +0300 |
commit | 779dc8f33365aac12bca14c3bc82b4726e5b165d (patch) | |
tree | 34678855c6c6b8c59f77a126defae9dedfd4f908 | |
parent | a2b55de351be2119b6f0c3a17c36b5b9adbd7c59 (diff) |
Fixed incorrect null check
-rw-r--r-- | ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs b/ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs index 5311d9a2..336b1432 100644 --- a/ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs +++ b/ICSharpCode.NRefactory.CSharp/CombineQueryExpressions.cs @@ -116,7 +116,7 @@ namespace ICSharpCode.NRefactory.CSharp Expression nae2 = match.Get<Expression>("nae2").SingleOrDefault(); string nae2Name = ExtractExpressionName(ref nae2); - if (nae1Name == null) + if (nae2Name == null) return false; bool introduceLetClause = true; @@ -213,4 +213,4 @@ namespace ICSharpCode.NRefactory.CSharp return null; } } -}
\ No newline at end of file +} |