From 4ba96e6ec180ab8db2af5cf5cd101d4d453f44e5 Mon Sep 17 00:00:00 2001 From: Sero <69639595+Seroxdesign@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:47:32 -0400 Subject: [PATCH] Update compileWalletSetupFunctions.ts --- .../cache/src/cli/compileWalletSetupFunctions.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/cache/src/cli/compileWalletSetupFunctions.ts b/packages/cache/src/cli/compileWalletSetupFunctions.ts index ec5bfd799..f9cb6e529 100644 --- a/packages/cache/src/cli/compileWalletSetupFunctions.ts +++ b/packages/cache/src/cli/compileWalletSetupFunctions.ts @@ -22,16 +22,6 @@ export async function compileWalletSetupFunctions( console.log('[DEBUG] Found the following wallet setup files:'); console.log(fileList, '\n'); } - - // TODO: This error message is copied over from another function. Refactor this. - if (!fileList.length) { - throw new Error( - [ - `No wallet setup files found at ${walletSetupDir}`, - 'Remember that all wallet setup files must end with `.setup.{ts,js,mjs}` extension!' - ].join('\n') - ); - } // TODO: This error message is copied over from another function. Refactor this. if (!fileList.length) { throw new Error( @@ -70,4 +60,4 @@ export async function compileWalletSetupFunctions( console.log(e) } return outDir -} \ No newline at end of file +}