Skip to content

Commit 5640e20

Browse files
flakey5ovflowd
andcommitted
Apply suggestions from code review
Co-authored-by: Claudio W <[email protected]>
1 parent 49d4647 commit 5640e20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/cli.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ const parsedApiDocs = await parseApiDocs(apiDocFiles);
7777

7878
const sourceFiles = loadJsFiles(
7979
parsedApiDocs
80-
.map(apiDoc => apiDoc.source_link_local)
81-
.filter(path => path !== undefined && path.endsWith('.js'))
80+
.map(({ source_link_local }) => source_link_local)
81+
.filter(path => path?.endsWith('.js'))
8282
);
8383

8484
const parsedJsFiles = await parseJsSources(sourceFiles);

src/generators.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import availableGenerators from './generators/index.mjs';
2121
* @param {ApiDocMetadataEntry} input The parsed API doc metadata entries
2222
* @param {Array<import('acorn').Program>} parsedJsFiles
2323
*/
24-
const createGenerator = (input, parsedJsFiles) => {
24+
const createGenerator = (markdownInput, jsInput) => {
2525
/**
2626
* We store all the registered generators to be processed
2727
* within a Record, so we can access their results at any time whenever needed

0 commit comments

Comments
 (0)