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;