Skip to content

Commit 63deaae

Browse files
committed
refactor: inline return
1 parent 63f413a commit 63deaae

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
@@ -52,9 +52,7 @@ const createParser = linter => {
5252
const parseApiDocs = async apiDocs => {
5353
// We do a Promise.all, to ensure that each API doc is resolved asynchronously
5454
// but all need to be resolved first before we return the result to the caller
55-
const resolvedApiDocEntries = await Promise.all(apiDocs.map(parseApiDoc));
56-
57-
return resolvedApiDocEntries;
55+
return Promise.all(apiDocs.map(parseApiDoc));
5856
};
5957

6058
return { parseApiDocs, parseApiDoc };

0 commit comments

Comments
 (0)