refactor: don't catch top-level promises
the ts compiler will handle it for us
This commit is contained in:
parent
af2dbb0389
commit
e00692956c
@ -118,5 +118,5 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (require.main === module) {
|
if (require.main === module) {
|
||||||
main().catch(e => console.error(e));
|
main();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user