Skip to content

Commit

Permalink
added more detailed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jan 9, 2024
1 parent 448a285 commit f168300
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ private static async Task<Document> RemoveOffendingNode(Document document, Synta
}
else
{
// in order to get the replaced "if" statement to have the same indention as the other clauses, we need to re-use
// the same leading trivia that we had previously
var leadingTrivia = forbiddenIfStatement.GetLeadingTrivia();

// If there's an else part, replace the if statement with the else part
Expand Down

0 comments on commit f168300

Please sign in to comment.