From dc58a97c374e257394343178696b30ce7a55e460 Mon Sep 17 00:00:00 2001 From: Kc Date: Mon, 19 Dec 2022 11:48:27 +0100 Subject: [PATCH] fixed dependency to ParseYesNoException --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 53b815a..91a8a7a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -24,6 +24,8 @@ interface Config { signSecret: string } +class ParseYesNoException extends Error {} + function parseYesNo (value: string) { if (value === 'yes') { return true @@ -41,5 +43,3 @@ export const config: Config = { alwaysPro: process.env.ALWAYS_PRO ? parseYesNo(process.env.ALWAYS_PRO) : false, signSecret: process.env.SIGN_SECRET || '' } - -class ParseYesNoException extends Error {}