Skip to content

Commit

Permalink
Merge pull request #43357 from Therzok/patch-3
Browse files Browse the repository at this point in the history
Use captured foreach variable
  • Loading branch information
sharwell authored Apr 15, 2020
2 parents 4127e6a + e6c0a03 commit f3f6268
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ public async Task ForceAnalyzeAsync(Solution solution, ProjectId? projectId = nu
var index = 0;
foreach (var project in solution.Projects)
{
var localProject = project;
tasks[index++] = Task.Run(
() => analyzer.ForceAnalyzeProjectAsync(project, cancellationToken));
}
Expand Down

0 comments on commit f3f6268

Please sign in to comment.