From ba80792cc47eaec979199097acb80df29746c95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 23 Oct 2024 14:02:38 +0200 Subject: [PATCH] Formatting --- config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.ts b/config.ts index e9ef665..d3fa7b5 100644 --- a/config.ts +++ b/config.ts @@ -6,16 +6,16 @@ const dirname = Deno.cwd(); await load({ envPath: `${dirname}/.env`, export: true }); -let userConfigPath: string = ''; +let userConfigPath: string = ""; let staticUsers: { [key: string]: string } = {}; const defaultUserConfigPaths = [ "/etc/substr/users.yaml", - `${dirname}/users.yaml` -] + `${dirname}/users.yaml`, +]; for (const path of defaultUserConfigPaths) { - const fileInfo = await Deno.lstat(path).catch(_e => undefined); + const fileInfo = await Deno.lstat(path).catch((_e) => undefined); if (fileInfo && fileInfo.isFile) { userConfigPath = path; break;