summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;