lint(github-card): Change duplicated variable name

This commit is contained in:
Jackie Luo 2016-04-19 17:34:19 -07:00
parent bfa1ef0d40
commit 665f9c654c

View file

@ -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);