Remove not needed 'then' clause

Summary: ^

Reviewed By: antonk52

Differential Revision: D48826887

fbshipit-source-id: 3ecc77d326bd7ddfa5e9f125012d6854f1692010
This commit is contained in:
Lorenzo Blasa
2023-08-30 06:47:48 -07:00
committed by Facebook GitHub Bot
parent 2858259497
commit 3bfe9a1f98

View File

@@ -344,9 +344,7 @@ process.on('unhandledRejection', (reason, promise) => {
); );
}); });
start() start().catch((e) => {
.then(() => {}) console.error(chalk.red('Server startup error: '), e);
.catch((e) => { process.exit(1);
console.error(chalk.red('Server startup error: '), e); });
process.exit(1);
});