Skip to content

Commit dd9dc66

Browse files
committed
feat(templates): refactor index.ts app.listen callback as it's changed
1 parent bda8bec commit dd9dc66

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

generators/app/templates/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import config from './config';
66
import app from './app';
77

88
// start app
9-
app.listen(config.port, config.host, (err: MyError) => {
10-
if (err !== null && err !== undefined) {
11-
throw err;
12-
}
13-
9+
app.listen(config.port, config.host, () => {
1410
logger.info(`> App started at http://${config.host}:${config.port}`);
1511
});
1612

0 commit comments

Comments
 (0)