Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public async Task<ImmutableArray<DiagnosticData>> ForceAnalyzeProjectAsync(Proje
// Try to add the new computed data to the CWT. But use any existing value that another thread
// might have beaten us to storing in it.
#if NET
_projectToForceAnalysisData.TryAdd(project, box);
Contract.ThrowIfFalse(_projectToForceAnalysisData.TryGetValue(project, out box));
if (!_projectToForceAnalysisData.TryAdd(project, box))
Contract.ThrowIfFalse(_projectToForceAnalysisData.TryGetValue(project, out box));
#else
box = _projectToForceAnalysisData.GetValue(project, _ => box);
#endif
Expand Down
Loading