Skip to content

Commit 51cd8fa

Browse files
authored
Merge pull request #36 from sharwell/use-completed-task
Use SpecializedTasks.CompletedTask
2 parents 266f47b + e0385c2 commit 51cd8fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DocumentationAnalyzers/DocumentationAnalyzers.CodeFixes/StyleRules/BlockLevelDocumentationCodeFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public override Task RegisterCodeFixesAsync(CodeFixContext context)
5050
context.RegisterCodeFix(CodeAction.Create(StyleResources.BlockLevelDocumentationCodeFix, token => GetTransformedDocumentAsync(context.Document, diagnostic, token), nameof(BlockLevelDocumentationCodeFixProvider)), diagnostic);
5151
}
5252

53-
return Task.FromResult(true);
53+
return SpecializedTasks.CompletedTask;
5454
}
5555

5656
private static async Task<Document> GetTransformedDocumentAsync(Document document, Diagnostic diagnostic, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)