Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
style: 🎨 add .then() to async entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Feb 9, 2024
1 parent 6df89f7 commit 20d2c04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion services/websoc-proxy/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ async function buildApp() {
});
}

buildApp();
buildApp().then();
2 changes: 1 addition & 1 deletion services/websoc-scraper-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,4 @@ async function main() {
}
}

main().then(() => []);
main().then();
8 changes: 3 additions & 5 deletions tools/cdk/src/app/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ async function main() {

new DocsStack(app, stackName, {
stage,
env: {
region: "us-east-1",
},
terminationProtection: /*stage === "prod"*/ false,
env: { region: "us-east-1" },
terminationProtection: stage === "prod",
});
}

main();
main().then();
6 changes: 2 additions & 4 deletions tools/cdk/src/app/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ async function main() {
const app = new App({ autoSynth: true });

new ServicesStack(app, stackName, {
env: {
region: "us-east-1",
},
env: { region: "us-east-1" },
terminationProtection: true,
});
}

main();
main().then();

0 comments on commit 20d2c04

Please sign in to comment.