Skip to content

Commit

Permalink
Move ThrowIfCancellationRequested call
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinCampbell committed Jan 6, 2025
1 parent 9d55eb4 commit 1956af7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ public void Process(RazorCodeDocument codeDocument, CancellationToken cancellati
{
ArgHelper.ThrowIfNull(codeDocument);

cancellationToken.ThrowIfCancellationRequested();

foreach (var phase in Phases)
{
phase.Execute(codeDocument, cancellationToken);
cancellationToken.ThrowIfCancellationRequested();
phase.Execute(codeDocument, cancellationToken);
}
}

Expand Down

0 comments on commit 1956af7

Please sign in to comment.