Formatting

This commit is contained in:
Râu Cao 2024-10-23 14:02:38 +02:00
parent a9f13310ab
commit ba80792cc4
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -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;