removing braces
This commit is contained in:
parent
3f374303a4
commit
814ae312b0
1 changed files with 4 additions and 4 deletions
8
index.ts
8
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue