From a0048880a1148129d7509f539526c22df2f16a93 Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Wed, 15 Jan 2025 11:03:15 +0100 Subject: [PATCH] chore(): updated let to const --- examples/rest-v5-next-cursor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rest-v5-next-cursor.ts b/examples/rest-v5-next-cursor.ts index c9ec22d..483394c 100644 --- a/examples/rest-v5-next-cursor.ts +++ b/examples/rest-v5-next-cursor.ts @@ -10,7 +10,7 @@ const client = new RestClientV5({ }); async function getAllUniversalTransfers() { - let allTransfers: UniversalTransferRecordV5[] = []; + const allTransfers: UniversalTransferRecordV5[] = []; let nextCursor = ''; let pages = 0; @@ -23,7 +23,7 @@ async function getAllUniversalTransfers() { }); if (response.result.list && response.result.list.length > 0) { - allTransfers = [...allTransfers, ...response.result.list]; + allTransfers.push(...response.result.list); } nextCursor = response.result.nextPageCursor;