Skip to content

Commit

Permalink
fix static analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet committed Aug 3, 2024
1 parent 7931b8a commit acec273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function isExternalReference(ref: string): boolean {
* @private
*/
export const resolve = async (files: string | string[], options: any) => {
const parsedJsons: AsyncAPIObject[] = [];
const parsedJsons: any = [];

for (const file of files) {
const prevDir = process.cwd();
Expand All @@ -92,7 +92,7 @@ export const resolve = async (files: string | string[], options: any) => {
readFile = toJS(readFile);

if (filePath) {
process.chdir(filePath);
process.chdir(path.resolve(prevDir, filePath));
}

readFile = await parse(readFile, getSpecVersion(readFile), options);
Expand Down

0 comments on commit acec273

Please sign in to comment.