Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit f409d03

Browse files
committed
chore: clean up
1 parent 058d0a8 commit f409d03

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/openapi-parser/tests/migration-layer.test.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,9 @@ class SwaggerParser {
4242

4343
validate(filesystem, {
4444
throwOnError: true,
45+
}).then((result) => {
46+
callback(null, result.schema)
4547
})
46-
.then((result) => {
47-
callback(null, result.schema)
48-
})
49-
.catch((error) => {
50-
callback(error, null)
51-
})
5248
} catch (error) {
5349
callback(error, null)
5450
}

0 commit comments

Comments
 (0)