aboutsummaryrefslogtreecommitdiff
path: root/src/lib/AniList/forum.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/AniList/forum.ts')
-rw-r--r--src/lib/AniList/forum.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/AniList/forum.ts b/src/lib/AniList/forum.ts
index 6b95fa07..5085f3d8 100644
--- a/src/lib/AniList/forum.ts
+++ b/src/lib/AniList/forum.ts
@@ -41,17 +41,13 @@ export const threads = async (username: string): Promise<Thread[]> => {
let page = 1;
let currentPage = await threadPage(page, userId);
- for (const thread of currentPage.data.Page.threads) {
- allThreads.push(thread);
- }
+ for (const thread of currentPage.data.Page.threads) allThreads.push(thread);
while (currentPage.data.Page.pageInfo.hasNextPage) {
page += 1;
currentPage = await threadPage(page, userId);
- for (const thread of currentPage.data.Page.threads) {
- allThreads.push(thread);
- }
+ for (const thread of currentPage.data.Page.threads) allThreads.push(thread);
}
return allThreads;