diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-09-13 12:58:15 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-09-13 12:58:15 +0200 |
| commit | ace32ed711c141c555a5bf35addb5f5710e197ae (patch) | |
| tree | 648595735b3ffe842412c88936f8e4086cba6b60 | |
| parent | 0772e7d750532a91fc89c9bb131229a7fb989b91 (diff) | |
| download | snap-ace32ed711c141c555a5bf35addb5f5710e197ae.tar.gz snap-ace32ed711c141c555a5bf35addb5f5710e197ae.zip | |
don't do nothing if the GitHub user has no repos
| -rw-r--r-- | github.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |
