Skip to content

Commit

Permalink
Finish generator with return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Dec 18, 2024
1 parent 46cc2e5 commit 0478b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gConsent/query/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,5 @@ export async function* paginateQuery(
page = await query(page.next, options);
}
// Return the last page.
yield page;
return page;
}

0 comments on commit 0478b52

Please sign in to comment.