Skip to content

Commit

Permalink
fix: do not turn response data into array for endpoints that do not p…
Browse files Browse the repository at this point in the history
…aginate
  • Loading branch information
gr2m committed Jan 26, 2020
1 parent 2f29b41 commit 957370f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/normalize-paginated-list-response.ts
Expand Up @@ -40,9 +40,6 @@ export function normalizePaginatedListResponse(
!REGEX_IS_INSTALLATION_REPOSITORIES_PATH.test(path) &&
!REGEX_IS_USER_INSTALLATIONS_PATH.test(path)
) {
if (!Array.isArray(response.data)) {
response.data = [response.data];
}
return;
}

Expand Down

0 comments on commit 957370f

Please sign in to comment.