Skip to content

Commit b7c1ccf

Browse files
committed
remove unnesessary code
1 parent 50e05c1 commit b7c1ccf

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ app.use(errorHandlerMiddleware);
1818

1919
const port = process.env.PORT || 5000;
2020

21-
const start = async () => {
22-
try {
21+
22+
try {
2323
app.listen(port, () =>
24-
console.log(`Server is listening on port ${port}...`)
25-
);
26-
} catch (error) {
24+
console.log(`Server is listening on port ${port}...`));
25+
} catch (error) {
2726
console.log(error);
28-
}
29-
};
30-
31-
start();
27+
}

0 commit comments

Comments
 (0)