scripts: convert to ESM and deduplicate #290
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,7 @@ const start = async () => {
|
|||
stderr: process.stderr,
|
||||
});
|
||||
} catch (e) {
|
||||
await new Promise(resolve => setTimeout(resolve, 3000));
|
||||
start();
|
||||
setTimeout(start, 3000);
|
||||
}
|
||||
norm marked this conversation as resolved
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue
Can't this be simplified to just
setTimeout(start, 3000);
?Hmm I'm not so sure any more but I think the change was fine because
start
isn't awaited on anyway...