Skip to content

Commit 9a350bb

Browse files
committed
1 parent bc8a7da commit 9a350bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/getResources.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import type { OpenAPIV2, OpenAPIV3 } from "openapi-types";
33
export default function getResources(
44
paths: OpenAPIV2.PathsObject | OpenAPIV3.PathsObject,
55
): string[] {
6-
return Array.from(
7-
new Set(
6+
return [
7+
...new Set(
88
Object.keys(paths).filter((path) => {
99
return new RegExp("^[^{}]+/{[^{}]+}/?$").test(path);
1010
}),
1111
),
12-
);
12+
];
1313
}

0 commit comments

Comments
 (0)