Skip to content

Commit

Permalink
chore: preserve more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 1, 2024
1 parent 3533a9d commit b5c64c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_typescript/src/strip_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl VisitMut for StripType {
fn visit_mut_stmt(&mut self, n: &mut Stmt) {
if should_retain_stmt(n) {
n.visit_mut_children_with(self);
} else {
} else if !n.is_empty() {
n.take();
}
}
Expand Down

0 comments on commit b5c64c8

Please sign in to comment.