Skip to content

Commit

Permalink
Don’t return the ast in the transformer
Browse files Browse the repository at this point in the history
It’s unnecessary.
  • Loading branch information
remcohaszing committed Dec 5, 2022
1 parent 9200ab0 commit 922afd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const remarkMermaid: RemarkMermaid = (options) => {

// Nothing to do. No need to start puppeteer in this case.
if (!instances.length) {
return ast;
return;
}

count += 1;
Expand Down Expand Up @@ -133,8 +133,6 @@ const remarkMermaid: RemarkMermaid = (options) => {
browserPromise = undefined;
await browser?.close();
}

return ast;
};
};

Expand Down

0 comments on commit 922afd3

Please sign in to comment.