Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 19, 2024
1 parent c9a3a52 commit e317f90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cst/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2457,10 +2457,8 @@ fn set_trailing_commas(
let mut insert_index = element.child_index() + 1;
parent.raw_insert_child(Some(&mut insert_index), CstToken::new(',').into());
}
} else {
if let Some(trailing_comma) = element.trailing_comma() {
trailing_comma.remove();
}
} else if let Some(trailing_comma) = element.trailing_comma() {
trailing_comma.remove();
}
}

Expand Down

0 comments on commit e317f90

Please sign in to comment.