Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31d1ab4

Browse files
authored
Fixed todo inside stats card data fetcher (anuraghazra#2649)
1 parenta82a617 commit31d1ab4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎src/calculateRank.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ const normalcdf = (mean, sigma, to) => {
2929
/**
3030
* Calculates the users rank.
3131
*
32-
*@param {number} totalRepos Total number of repos.
33-
*@param {number} totalCommits Total number of commits.
34-
*@param {number} contributions The number of contributions.
35-
*@param {number} followers The number of followers.
36-
*@param {number} prs The number of pull requests.
37-
*@param {number} issues The number of issues.
38-
*@param {number} stargazers The number of stars.
32+
*@param {object} params Parameters on which the user's rank depends.
33+
*@param {number} params.totalRepos Total number of repos.
34+
*@param {number} params.totalCommits Total number of commits.
35+
*@param {number} params.contributions The number of contributions.
36+
*@param {number} params.followers The number of followers.
37+
*@param {number} params.prs The number of pull requests.
38+
*@param {number} params.issues The number of issues.
39+
*@param {number} params.stargazers The number of stars.
3940
*@returns {{level: string, score: number}}} The users rank.
4041
*/
4142
constcalculateRank=({

‎src/fetchers/stats-fetcher.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ const fetchStats = async (
259259
returnprev+curr.stargazers.totalCount;
260260
},0);
261261

262-
//@ts-ignore // TODO: Fix this.
263262
stats.rank=calculateRank({
264263
totalCommits:stats.totalCommits,
265264
totalRepos:user.repositories.totalCount,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp