Skip to content

Commit

Permalink
Fix getAWSPagedResults
Browse files Browse the repository at this point in the history
  • Loading branch information
rddimon committed Dec 7, 2023
1 parent 7188b33 commit 5e83376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function getAWSPagedResults<ClientOutput, ClientInputCommand extends objec
let results = [];
let response = await client.send(params);
results = results.concat(response[resultsKey] || results);
while (nextRequestTokenKey in response && response[nextRequestTokenKey]) {
while ((nextRequestTokenKey in response) && response[nextRequestTokenKey]) {
params.input[nextTokenKey] = response[nextRequestTokenKey];
response = await client.send(params);
results = results.concat(response[resultsKey]);
Expand Down

0 comments on commit 5e83376

Please sign in to comment.