Skip to content

Commit

Permalink
refactor(mdx): aesthetic usage of promise
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Jun 25, 2024
1 parent bb50199 commit 4c8f27c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/redac/lib/plugin-mdx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export default (config) => {
},
'engine:source': async ({ documents }) =>
each(configs, true, async (config) => {
const docs = await step_1_normalize({ config })
const docs = await Promise.resolve({ config })
.then(step_1_normalize)
.then(step_2_load)
.then(step_3_enrich)
.then(step_4_parse)
Expand Down

0 comments on commit 4c8f27c

Please sign in to comment.