We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0944970 commit ec3b197Copy full SHA for ec3b197
src/util/common-utils.ts
@@ -400,9 +400,7 @@ const handleProjectNameConflict = async (
400
};
401
async function fetchBoilerplateDetails(): Promise<Record<string, any>[]> {
402
try {
403
- const url = config.boilerplatesUrl;
404
- const client = new HttpClient();
405
- const content = await client.get(url);
+ const content = await new HttpClient().get(config.boilerplatesUrl);
406
return content?.data?.templates ?? [];
407
} catch (error) {
408
throw error;
0 commit comments