Skip to content

Commit

Permalink
Fix flawed unist-util-visit usage (#1447)
Browse files Browse the repository at this point in the history
* Fix issue on `publishLocalFiles`

* Lint cml.js

* Lint cml.js
  • Loading branch information
0x2b3bfa0 authored May 9, 2024
1 parent e7d27a5 commit 1c49104
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ class CML {
const publishLocalFiles = async (tree) => {
const nodes = [];

visit(tree, ['definition', 'image', 'link'], (node) => nodes.push(node));
visit(tree, ['definition', 'image', 'link'], (node) => {
nodes.push(node);
});

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

0 comments on commit 1c49104

Please sign in to comment.