Skip to content

Commit aac12a8

Browse files
committed
refactor: inline return
1 parent cdadc03 commit aac12a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/parsers/markdown.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ const createParser = linter => {
5353
const parseApiDocs = async apiDocs => {
5454
// We do a Promise.all, to ensure that each API doc is resolved asynchronously
5555
// but all need to be resolved first before we return the result to the caller
56-
const resolvedApiDocEntries = await Promise.all(apiDocs.map(parseApiDoc));
57-
58-
return resolvedApiDocEntries;
56+
return Promise.all(apiDocs.map(parseApiDoc));
5957
};
6058

6159
return { parseApiDocs, parseApiDoc };

0 commit comments

Comments
 (0)