Skip to content

Commit 2ae6304

Browse files
authored
Refactor isOAS30 function formatting
1 parent 51fde27 commit 2ae6304

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/plugins/oas3/helpers.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export function isOAS30(jsSpec) {
77
const oasVersion = jsSpec.get("openapi")
88

99
return (
10-
typeof oasVersion === "string" &&
11-
/^3\.0\.(?:[1-9]\d*|0)$/.test(oasVersion)
10+
typeof oasVersion === "string" && /^3\.0\.(?:[1-9]\d*|0)$/.test(oasVersion)
1211
)
1312
}
1413

0 commit comments

Comments
 (0)