Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit 922afd3

Browse files
committed
Don’t return the ast in the transformer
It’s unnecessary.
1 parent 9200ab0 commit 922afd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const remarkMermaid: RemarkMermaid = (options) => {
7878

7979
// Nothing to do. No need to start puppeteer in this case.
8080
if (!instances.length) {
81-
return ast;
81+
return;
8282
}
8383

8484
count += 1;
@@ -133,8 +133,6 @@ const remarkMermaid: RemarkMermaid = (options) => {
133133
browserPromise = undefined;
134134
await browser?.close();
135135
}
136-
137-
return ast;
138136
};
139137
};
140138

0 commit comments

Comments
 (0)