From 8803b01d2fb9d5ff8360a15f1aa7441707481c2b Mon Sep 17 00:00:00 2001 From: Jackie Luo Date: Tue, 19 Apr 2016 17:34:19 -0700 Subject: [PATCH] lint(github-card): Change duplicated variable name --- .../github-contact-card/lib/github-user-store.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_packages/github-contact-card/lib/github-user-store.es6 b/internal_packages/github-contact-card/lib/github-user-store.es6 index 71494f771..3eeb3fee5 100644 --- a/internal_packages/github-contact-card/lib/github-user-store.es6 +++ b/internal_packages/github-contact-card/lib/github-user-store.es6 @@ -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);