Skip to content

Commit 21f0b6d

Browse files
Throw unreachable rather than returning Task.CompletedTask.
1 parent 9bbcf8e commit 21f0b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationStateSynchronizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private async ValueTask ProcessBatchAsync(ImmutableArray<Work> items, Cancellati
7575
AddProject(var configurationFilePath, var projectInfo) => AddProjectAsync(configurationFilePath, projectInfo, token),
7676
ResetProject(_, var projectKey) => ResetProjectAsync(projectKey, token),
7777
UpdateProject(_, var projectKey, var projectInfo) => UpdateProjectAsync(projectKey, projectInfo, token),
78-
_ => Task.CompletedTask
78+
_ => Assumed.Unreachable<Task>()
7979
};
8080

8181
await itemTask.ConfigureAwait(false);

0 commit comments

Comments
 (0)