mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
lint(github-card): Change duplicated variable name
This commit is contained in:
parent
1bfc8e74b1
commit
8803b01d2f
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ class GithubUserStore extends NylasStore {
|
|||
// repositories.
|
||||
if (profile !== false) {
|
||||
profile.repos = [];
|
||||
this._githubRequest(`https://api.github.com/search/repositories?q=user:${profile.login}&sort=stars&order=desc`, (reposErr, reposResp, data)=> {
|
||||
this._githubRequest(`https://api.github.com/search/repositories?q=user:${profile.login}&sort=stars&order=desc`, (reposErr, reposResp, repos)=> {
|
||||
// Sort the repositories by their stars (`-` for descending order)
|
||||
profile.repos = _.sortBy(data.items, (repo)=> -repo.stargazers_count);
|
||||
profile.repos = _.sortBy(repos.items, (repo)=> -repo.stargazers_count);
|
||||
// Trigger so that our React components refresh their state and display
|
||||
// the updated data.
|
||||
this.trigger(this);
|
||||
|
|
Loading…
Reference in a new issue