Skip to content

Commit 68e80f2

Browse files
committed
fix: remove callback as is not need in fs/promises
1 parent 0431f4e commit 68e80f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const JSON_OUTPUT = `${OUTPUT_DIR}/swagger.json`
1111
const convertOpenApi = async function () {
1212
const [openapiDef] = await Promise.all([
1313
SwaggerParser.validate(YAML_INPUT, { dereference: { circular: false } }),
14-
mkdir(OUTPUT_DIR, { recursive: true }, () => {}),
14+
mkdir(OUTPUT_DIR, { recursive: true }),
1515
])
1616
const openapiJson = JSON.stringify(openapiDef, null, 2)
1717
await writeFile(JSON_OUTPUT, openapiJson)

0 commit comments

Comments
 (0)