Skip to content

Commit cf33c65

Browse files
style: improve code syntax
Co-authored-by: Matteo Pierro <[email protected]>
1 parent bbcd152 commit cf33c65

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fetchers/stats-fetcher.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,9 @@ const statsFetcher = async (username) => {
111111
(node) => node.stargazers.totalCount !== 0,
112112
);
113113
hasNextPage =
114-
process.env.FETCH_MULTI_PAGE_STARS === "true"
115-
? repoNodes.length === repoNodesWithStars.length &&
116-
res.data.data.user.repositories.pageInfo.hasNextPage
117-
: false;
114+
process.env.FETCH_MULTI_PAGE_STARS === "true" &&
115+
repoNodes.length === repoNodesWithStars.length &&
116+
res.data.data.user.repositories.pageInfo.hasNextPage;
118117
endCursor = res.data.data.user.repositories.pageInfo.endCursor;
119118
}
120119

0 commit comments

Comments
 (0)