summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-13 12:58:15 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-13 12:58:15 +0200
commitace32ed711c141c555a5bf35addb5f5710e197ae (patch)
tree648595735b3ffe842412c88936f8e4086cba6b60
parent0772e7d750532a91fc89c9bb131229a7fb989b91 (diff)
downloadsnap-ace32ed711c141c555a5bf35addb5f5710e197ae.tar.gz
snap-ace32ed711c141c555a5bf35addb5f5710e197ae.zip
don't do nothing if the GitHub user has no repos
-rw-r--r--github.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/github.js b/github.js
index f231e6d..66a4547 100644
--- a/github.js
+++ b/github.js
@@ -259,6 +259,10 @@ GitHubBackend.prototype.getProjectList = function (callBack, errorCall) {
};
})();
+ if (repos.length === 0) {
+ callBack.call(myself, snapProjects);
+ }
+
repos.forEach(function (repo) {
if (repo.description.indexOf('Snap! Project') > -1) { // TODO nicer detection
var project, ghrepo, branch;