Skip to content

Commit

Permalink
split into two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Apr 29, 2024
1 parent b826dc3 commit a314f9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docusaurus-plugin-openapi/src/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ export async function readOpenapiFiles(
if (isURL(openapiPath)) {
let data;
try {
data = await (await fetch(openapiPath)).json();
const response = await fetch(openapiPath);
data = await response.json();
} catch (err) {
throw Error(
`Did not find an OpenAPI specification at URL ${openapiPath}`
Expand Down

0 comments on commit a314f9a

Please sign in to comment.