lint(github-card): Change duplicated variable name

This commit is contained in:
Jackie Luo 2016-04-19 17:34:19 -07:00
parent 1bfc8e74b1
commit 8803b01d2f

View file

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