Skip to content

Commit 228606d

Browse files
committed
wip: skip also
1 parent 8fc3be7 commit 228606d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plugin.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function redactTransformImpl(node, index, parent) {
1818
}
1919
return SKIP;
2020
});
21+
return SKIP;
2122
}
2223

2324
/**
@@ -26,14 +27,14 @@ function redactTransformImpl(node, index, parent) {
2627
* @param node - tree to transform
2728
*/
2829
function redactTransform(node) {
29-
const test = (node, index, parent) => {
30+
const test = (child, index, parent) => {
3031
return (
31-
node.class &&
32-
node.class.split(/\s/).some((class_) => class_ === "redacted")
32+
child.class &&
33+
child.class.split(/\s/).some((class_) => class_ === "redacted")
3334
);
3435
};
35-
visit(node, test, (node, index, parent) =>
36-
redactTransformImpl(node, index, parent),
36+
visit(node, test, (child, index, parent) =>
37+
redactTransformImpl(child, index, parent),
3738
);
3839
}
3940

0 commit comments

Comments
 (0)