Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Remove obsolete todos
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 25, 2022
1 parent 3967d03 commit e6730da
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/rome_js_formatter/src/syntax_rewriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ impl JsFormatSyntaxRewriter {
// The leading whitespace before the opening parens replaces the whitespace before the node.
while let Some(trivia) = leading_trivia.peek() {
if trivia.is_whitespace() || trivia.is_newline() {
// TODO add test case that triggers the case where inner offset is outdated.
let trivia_len = trivia.text_len();
self.source_map
.add_deleted_range(TextRange::at(inner_offset, trivia_len));
Expand Down Expand Up @@ -133,9 +132,6 @@ impl JsFormatSyntaxRewriter {
// doesn't contain ANY token, but we know that the subtree contains at least the first token.
let last_token = updated.last_token().unwrap();

// TODO consider skipping the trailing whitespace of the node before the `)`?
// So that it is inline with the formatting of verbatim nodes?

let new_last = last_token.with_trailing_trivia_pieces(chain_pieces(
last_token.trailing_trivia().pieces(),
r_paren_trivia,
Expand Down

0 comments on commit e6730da

Please sign in to comment.