mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
lint(github-card): Change duplicated variable name
This commit is contained in:
parent
bfa1ef0d40
commit
665f9c654c
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ class GithubUserStore extends NylasStore {
|
||||||
// repositories.
|
// repositories.
|
||||||
if (profile !== false) {
|
if (profile !== false) {
|
||||||
profile.repos = [];
|
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)
|
// 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
|
// Trigger so that our React components refresh their state and display
|
||||||
// the updated data.
|
// the updated data.
|
||||||
this.trigger(this);
|
this.trigger(this);
|
||||||
|
|
Loading…
Reference in a new issue