Fix inverted condition.

上级 8ed2d40a
......@@ -1846,7 +1846,7 @@ protected void EnsureRootBoundForNullabilityIfNecessary()
// If this isn't a speculative model and we have a snapshot manager,
// then we've already done all the work necessary and we should avoid
// taking an unnecessary read lock.
if (!IsSpeculativeSemanticModel && _lazySnapshotManager is null)
if (!IsSpeculativeSemanticModel && _lazySnapshotManager is object)
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册