Skip to content

Commit 7749f42

Browse files
authored
feat(create-cloudflare): remove await keyword in non async function calls (#9032)
1 parent 0838f1b commit 7749f42

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/old-ghosts-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Removed `await` keyword used in non asynchronous function calls

packages/create-cloudflare/src/templates.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ export const createContext = async (
316316
const experimental = args.experimental;
317317

318318
const frameworkMap = getFrameworkMap({ experimental });
319-
const helloWorldTemplateMap = await getHelloWorldTemplateMap({
319+
const helloWorldTemplateMap = getHelloWorldTemplateMap({
320320
experimental,
321321
});
322-
const otherTemplateMap = await getOtherTemplateMap({ experimental });
322+
const otherTemplateMap = getOtherTemplateMap({ experimental });
323323

324324
let linesPrinted = 0;
325325

@@ -645,7 +645,7 @@ export async function copyTemplateFiles(ctx: C3Context) {
645645
srcdir = join(getTemplatePath(ctx), variantInfo.path);
646646
}
647647

648-
const copyDestDir = await getCopyFilesDestinationDir(ctx);
648+
const copyDestDir = getCopyFilesDestinationDir(ctx);
649649
const destdir = join(ctx.project.path, ...(copyDestDir ? [copyDestDir] : []));
650650

651651
const s = spinner();

0 commit comments

Comments
 (0)