Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
don't reassign limit
Browse files Browse the repository at this point in the history
  • Loading branch information
derom committed Mar 23, 2021
1 parent 5313278 commit 0b6d71c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/clients/rest/rest_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@ class RestClient extends HttpClient {

const link = ret.headers.get('link');
if (params.query && link !== undefined) {
let limit = RestClient.DEFAULT_LIMIT;
if (params.query.limit) {
limit = params.query.limit.toString();
}

const pageInfo: PageInfo = {
limit,
limit: params.query.limit ? params.query.limit.toString() : RestClient.DEFAULT_LIMIT,
};

if (link) {
Expand Down

0 comments on commit 0b6d71c

Please sign in to comment.