提交 d5e85604 编写于 作者: M Manish Vasani

Simplify

上级 c1d3eaa4
......@@ -452,10 +452,8 @@ private static ImmutableArray<DiagnosticDataLocation> GetAdditionalLocations(Tex
}
else if (location.Kind == LocationKind.ExternalFile)
{
if (document.Project.GetDocumentForExternalLocation(location) is { } textDocumentId)
{
builder.AddIfNotNull(CreateLocation(document.Project.GetTextDocument(textDocumentId), location));
}
var textDocumentId = document.Project.GetDocumentForExternalLocation(location);
builder.AddIfNotNull(CreateLocation(document.Project.GetTextDocument(textDocumentId), location));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册