提交 f77b0105 编写于 作者: D Dustin Campbell

Remove unneeded null checks in AbstractCompletionService

上级 bc69ad0e
......@@ -198,16 +198,17 @@ private static CompletionList MergeAndPruneCompletionLists(IEnumerable<Completio
foreach (var completionList in completionLists)
{
if (completionList != null)
Contract.Assert(completionList != null);
foreach (var item in completionList.Items)
{
foreach (var item in completionList.Items.WhereNotNull())
{
// New items that match an existing item will replace it.
ReplaceExistingItem(item, displayNameToItemsMap, completionRules);
}
Contract.Assert(item != null);
builder = builder ?? completionList.Builder;
// New items that match an existing item will replace it.
ReplaceExistingItem(item, displayNameToItemsMap, completionRules);
}
builder = builder ?? completionList.Builder;
}
if (displayNameToItemsMap.Count == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册