From b67978ea5b08a4dba1b06bee2ae8d7d92687b08d Mon Sep 17 00:00:00 2001 From: Navin Moorthy Date: Wed, 12 Jul 2023 13:05:41 +0530 Subject: [PATCH] =?UTF-8?q?refactor(utils):=20=E2=99=BB=EF=B8=8F=20update?= =?UTF-8?q?=20ensureDirectoryAccess=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add missing comma in function parameter --- src/utils/ensureDirectoryAccess.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/ensureDirectoryAccess.ts b/src/utils/ensureDirectoryAccess.ts index 2b2c1bc..e3fe998 100644 --- a/src/utils/ensureDirectoryAccess.ts +++ b/src/utils/ensureDirectoryAccess.ts @@ -12,13 +12,13 @@ import { throwError } from "./throwError.js"; * @throws {Error} If the directory does not exist or is not accessible. */ export async function ensureDirectoryAccess( - directoryPath: string + directoryPath: string, ): Promise { try { await fs.access( directoryPath, // eslint-disable-next-line no-bitwise - fsSync.constants.F_OK | fsSync.constants.W_OK | fsSync.constants.R_OK + fsSync.constants.F_OK | fsSync.constants.W_OK | fsSync.constants.R_OK, ); } catch { try { @@ -27,7 +27,7 @@ export async function ensureDirectoryAccess( } catch (error) { throwError( error, - `${directoryPath} does not exists / writable / readable in ensureDirectoryAccess function` + `${directoryPath} does not exists / writable / readable in ensureDirectoryAccess function`, ); } }