提交 16ebf56d 编写于 作者: G Gen Lu

Remove unnecessary nullable suppression

上级 b9855beb
......@@ -66,7 +66,7 @@ public static async Task<SemanticModel> GetSemanticModelForSpanAsync(this Docume
}
var node = token.Parent.AncestorsAndSelf().First(a => a.FullSpan.Contains(span));
return (await GetSemanticModelForNodeAsync(semanticModelService, syntaxFactService, document, node, span, cancellationToken).ConfigureAwait(false))!;
return await GetSemanticModelForNodeAsync(semanticModelService, syntaxFactService, document, node, span, cancellationToken).ConfigureAwait(false);
}
/// <summary>
......@@ -103,7 +103,7 @@ public static Task<SemanticModel> GetSemanticModelForNodeAsync(this Document doc
return document.GetSemanticModelAsync(cancellationToken)!;
}
return semanticModelService.GetSemanticModelForNodeAsync(document, node, cancellationToken)!;
return semanticModelService.GetSemanticModelForNodeAsync(document, node, cancellationToken);
}
#nullable restore
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册