Skip to content

Commit 627f9ea

Browse files
committed
formatting js properly
1 parent d038f74 commit 627f9ea

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ async function runServerlessDeploy() {
4040
}
4141

4242
// Main function
43-
(async () => {
44-
if (require.main === module) {
45-
await installDocker()
46-
await installServerlessAndPlugins()
47-
await runServerlessDeploy()
48-
}
49-
})();
43+
async handler() {
44+
await installDocker()
45+
await installServerlessAndPlugins()
46+
await runServerlessDeploy()
47+
}
48+
49+
50+
if (require.main === module) {
51+
handler()
52+
}

0 commit comments

Comments
 (0)