Skip to content

Commit

Permalink
chore(): updated let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Jan 15, 2025
1 parent 1802eff commit a004888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rest-v5-next-cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const client = new RestClientV5({
});

async function getAllUniversalTransfers() {
let allTransfers: UniversalTransferRecordV5[] = [];
const allTransfers: UniversalTransferRecordV5[] = [];
let nextCursor = '';
let pages = 0;

Expand All @@ -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;
Expand Down

0 comments on commit a004888

Please sign in to comment.