We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbcd152 commit cf33c65Copy full SHA for cf33c65
src/fetchers/stats-fetcher.js
@@ -111,10 +111,9 @@ const statsFetcher = async (username) => {
111
(node) => node.stargazers.totalCount !== 0,
112
);
113
hasNextPage =
114
- process.env.FETCH_MULTI_PAGE_STARS === "true"
115
- ? repoNodes.length === repoNodesWithStars.length &&
116
- res.data.data.user.repositories.pageInfo.hasNextPage
117
- : false;
+ process.env.FETCH_MULTI_PAGE_STARS === "true" &&
+ repoNodes.length === repoNodesWithStars.length &&
+ res.data.data.user.repositories.pageInfo.hasNextPage;
118
endCursor = res.data.data.user.repositories.pageInfo.endCursor;
119
}
120
0 commit comments