Skip to content

Commit ec3b197

Browse files
fix: updated the call in fetchBoilerplateDetails
1 parent 0944970 commit ec3b197

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util/common-utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,7 @@ const handleProjectNameConflict = async (
400400
};
401401
async function fetchBoilerplateDetails(): Promise<Record<string, any>[]> {
402402
try {
403-
const url = config.boilerplatesUrl;
404-
const client = new HttpClient();
405-
const content = await client.get(url);
403+
const content = await new HttpClient().get(config.boilerplatesUrl);
406404
return content?.data?.templates ?? [];
407405
} catch (error) {
408406
throw error;

0 commit comments

Comments
 (0)