From 814ae312b00fdf15edc7ff74e3657ff8a91bbad0 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Tue, 2 Apr 2024 20:32:01 -0700 Subject: [PATCH] removing braces --- index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 770df5f..ead1e87 100644 --- a/index.ts +++ b/index.ts @@ -14,8 +14,8 @@ async function getPatchHrefs() { const hrefRequests = [...Array(7).keys()] .map((val) => ++val) - .map((page) => { - return (async () => { + .map((page) => + (async () => { const req = await fetch(getGalleryPageHref(page)); const data = parse(await req.text()); @@ -28,8 +28,8 @@ async function getPatchHrefs() { ?.getElementsByTagName("a") .map((el) => el.getAttribute("href")) .filter((el) => el) as string[]; - })(); - }); + })(), + ); const hrefLists = await Promise.all(hrefRequests);