Skip to content

Commit

Permalink
refactor: run void
Browse files Browse the repository at this point in the history
  • Loading branch information
samarmeena committed Dec 18, 2023
1 parent d3caf00 commit 8388edf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 24 deletions.
4 changes: 1 addition & 3 deletions 1-starter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,4 @@ async function run() {
await bot.login(process.env.BOT_TOKEN);
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 2-starter-with-api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,4 @@ async function run() {
// ************* rest api section: end **********
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 3-blank/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,4 @@ async function run() {
await bot.login(process.env.BOT_TOKEN);
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 4-music-player-ytdl/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,4 @@ async function run() {
await bot.login(process.env.BOT_TOKEN);
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 5-music-player-lavalink/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,4 @@ async function run() {
await bot.login(process.env.BOT_TOKEN);
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 6-koa-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ async function run() {
// ************* rest api section: end **********
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 7-hot-module-reload/src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,4 @@ async function run() {
}
}

run().catch((err) => {
throw err;
});
void run();
4 changes: 1 addition & 3 deletions 7-hot-module-reload/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ async function run() {
await bot.login(process.env.BOT_TOKEN);
}

run().catch((err) => {
throw err;
});
void run();

0 comments on commit 8388edf

Please sign in to comment.