From 634a29c9c27c16091aeaeb6825bfa5c6a69c229d Mon Sep 17 00:00:00 2001
From: Francis Dinh <normandy@biribiri.dev>
Date: Thu, 15 Dec 2022 15:29:37 -0500
Subject: [PATCH] simplify setTimeout call

---
 scripts/dev.mjs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/dev.mjs b/scripts/dev.mjs
index b6515a21e..cb1eb2615 100644
--- a/scripts/dev.mjs
+++ b/scripts/dev.mjs
@@ -45,8 +45,7 @@ const start = async () => {
 			stderr: process.stderr,
 		});
 	} catch (e) {
-		await new Promise(resolve => setTimeout(resolve, 3000));
-		start();
+		setTimeout(start, 3000);
 	}
 };