Skip to content

Commit

Permalink
Update compileWalletSetupFunctions.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Seroxdesign authored Jul 2, 2024
1 parent 85931c2 commit 4ba96e6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/cache/src/cli/compileWalletSetupFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -70,4 +60,4 @@ export async function compileWalletSetupFunctions(
console.log(e)
}
return outDir
}
}

0 comments on commit 4ba96e6

Please sign in to comment.