Skip to content

Commit 85ed0aa

Browse files
committed
fix: duplicated parse call
1 parent 019b28f commit 85ed0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strategies/export-version.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function getTransformedDocument(document: ResolvedVersionDocument, format:
5050
const sourceString = JSON.parse(await source.text())
5151
return {
5252
...versionDocumentBase,
53-
data: removeOasExtensions(JSON.parse(sourceString), allowedOasExtensions),
53+
data: removeOasExtensions(sourceString, allowedOasExtensions),
5454
}
5555
}
5656
if (source.type.startsWith('application/octet-stream')) {

0 commit comments

Comments
 (0)