Merge pull request #145 from chocolateboy/stop_iteration_if_starred

stop iterating starred repos if a match is found
This commit is contained in:
David Coallier
2013-11-23 18:03:28 -08:00

View File

@@ -98,7 +98,8 @@ var github_user_starred_resume = function(username) {
$.each(repos, function(i, repo) {
if (repo.full_name == "resume/resume.github.com") {
starred = true;
}
return false; // stop iterating
}
});
return starred;
}