stop iterating starred repos if a match is found

This commit is contained in:
chocolateboy
2013-11-20 19:56:37 +00:00
parent 97e5f93f80
commit 5cb4936946

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;
}