Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 15, 2023
1 parent e260f1f commit fb76e44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/babel-traverse/src/path/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ export function shareCommentsWithSiblings(this: NodePath) {
const hasPrev = Boolean(prev.node);
const hasNext = Boolean(next.node);

/*if (hasPrev) {
if (leading) prev.addComments("trailing", leading);
if (trailing) prev.addComments("trailing", trailing);
} else if (hasNext) {
if (trailing) next.addComments("leading", trailing);
if (leading) next.addComments("leading", leading);
}*/

if (hasPrev) {
if (leading) {
prev.addComments(
Expand Down

0 comments on commit fb76e44

Please sign in to comment.