Skip to content

Commit

Permalink
fixed bug in getRepoIssues. Should have been working with a json obj
Browse files Browse the repository at this point in the history
  • Loading branch information
pennyfx committed Oct 17, 2012
1 parent 7cbd963 commit ed5bceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/github.js
Expand Up @@ -19,6 +19,7 @@ module.exports = GitHub = {
count: 0
}
};
json = JSON.parse(json);
json.forEach(function(issue){
repoIssues.issues.count++;
if (issue.pull_request.patch_url){
Expand All @@ -35,7 +36,7 @@ module.exports = GitHub = {
});
});
callback(null, repoIssues);
}else{
} else {
callback("Errror", null);
}
});
Expand Down

0 comments on commit ed5bceb

Please sign in to comment.