Skip to content

Commit a528f84

Browse files
Switch return to continue (#78781)
2 parents cc42ab1 + 17629fa commit a528f84

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Workspaces/Core/Portable/Workspace/ProjectSystem/ProjectSystemProject.BatchingDocumentCollection.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,16 @@ private async ValueTask ProcessDynamicFileChangesAsync(ImmutableSegmentedList<(s
478478

479479
using (await _project._gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
480480
{
481-
// If our project has already been removed, this is a stale notification, and we can disregard.
481+
// If our project has already been removed, and we can disregard everything and just 'return'
482482
if (_project.HasBeenRemoved)
483483
return;
484484

485+
// For everything else, if it's not here 'continue' to the next item in the batch.
485486
if (!_documentPathsToDocumentIds.TryGetValue(workspaceFilePath, out documentId))
486-
return;
487+
continue;
487488

488489
if (!_documentIdToDynamicFileInfoProvider.TryGetValue(documentId, out fileInfoProvider))
489-
return;
490+
continue;
490491
}
491492

492493
// Now that we've got all our basic data, let's fetch the new document outside the lock, since this could be expensive.

0 commit comments

Comments
 (0)