diff --git a/src/util/common-utils.ts b/src/util/common-utils.ts index 10ca52c..551a757 100644 --- a/src/util/common-utils.ts +++ b/src/util/common-utils.ts @@ -400,9 +400,7 @@ const handleProjectNameConflict = async ( }; async function fetchBoilerplateDetails(): Promise[]> { try { - const url = config.boilerplatesUrl; - const client = new HttpClient(); - const content = await client.get(url); + const content = await new HttpClient().get(config.boilerplatesUrl); return content?.data?.templates ?? []; } catch (error) { throw error;