Skip to content

Commit

Permalink
fix: lint issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nilkanth987 committed Nov 21, 2023
1 parent 0268121 commit 653439e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/processors/AsyncAPIInputProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ export class AsyncAPIInputProcessor extends AbstractInputProcessor {

async getParsedFileInput(input: string): Promise<AsyncAPIDocumentInterface> {
const filePath = fileURLToPath(input);
/* eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as it just checks file existance */
if (!fs.existsSync(filePath)) {
throw new Error('File does not exists.');
}
Expand Down

0 comments on commit 653439e

Please sign in to comment.