Skip to content

Commit 1c49104

Browse files
authored
Fix flawed unist-util-visit usage (#1447)
* Fix issue on `publishLocalFiles` * Lint cml.js * Lint cml.js
1 parent e7d27a5 commit 1c49104

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cml.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ class CML {
213213
const publishLocalFiles = async (tree) => {
214214
const nodes = [];
215215

216-
visit(tree, ['definition', 'image', 'link'], (node) => nodes.push(node));
216+
visit(tree, ['definition', 'image', 'link'], (node) => {
217+
nodes.push(node);
218+
});
217219

218220
const isWatermark = (node) => {
219221
return node.title && node.title.startsWith('CML watermark');

0 commit comments

Comments
 (0)