提交 04fe3df4 编写于 作者: R Ravi Chande

Remove extra null check

上级 93378384
......@@ -376,13 +376,6 @@ internal static bool TryGetSyntax(SyntaxNode root, int position, ISyntaxFactsSer
var conditionalAccess = elementBindingExpression.FirstAncestorOrSelf<ConditionalAccessExpressionSyntax>(
c => c.SpanStart < elementBindingExpression.SpanStart);
if (conditionalAccess == null)
{
identifier = null;
openBrace = default(SyntaxToken);
return false;
}
identifier = conditionalAccess.Expression;
openBrace = elementBindingExpression.ArgumentList.OpenBracketToken;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册