Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Oct 26, 2024
1 parent d5ae889 commit 1aead1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const envSchema = z.object({
),
NODES: z.preprocess(val => (typeof val === 'string' ? JSON.parse(val) : val), z.array(LavalinkNodeSchema)),
GENIUS_API: z.string().optional(),
retryAmount: z.preprocess(val => Number.parseInt(val as string, 10), z.number().optional()),
retryDelay: z.preprocess(val => Number.parseInt(val as string, 10), z.number().optional()),
retryAmount: z.preprocess(val => Number.parseInt(val as string, 10), z.number().optional()),
retryDelay: z.preprocess(val => Number.parseInt(val as string, 10), z.number().optional()),
requestSignalTimeoutMS: z.number().optional(),
closeOnError: z.boolean().optional(),
heartBeatInterval: z.number().optional(),
Expand All @@ -71,7 +71,7 @@ export const env: Env = envSchema.parse(process.env);

for (const key in env) {
if (!(key in env)) {
throw new Error("Missing env variable: ${key}\nPlease check your .env file and try again.");
throw new Error('Missing env variable: ${key}\nPlease check your .env file and try again.');
}
}

Expand Down

0 comments on commit 1aead1b

Please sign in to comment.