fix(go): check for res from github datasource before continuing

This commit is contained in:
Rhys Arkins 2020-03-28 10:13:26 +01:00
parent 7a02eadfa9
commit 05d5b444b9

View file

@ -89,7 +89,10 @@ export async function getPkgReleases({
const source = await getDatasource(lookupName); const source = await getDatasource(lookupName);
if (source && source.datasource === github.id) { if (source && source.datasource === github.id) {
const res = await github.getPkgReleases(source); const res = await github.getPkgReleases(source);
// istanbul ignore if
if (!res) {
return res;
}
/** /**
* github.com/org/mod/submodule should be tagged as submodule/va.b.c * github.com/org/mod/submodule should be tagged as submodule/va.b.c
* and that tag should be used instead of just va.b.c, although for compatibility * and that tag should be used instead of just va.b.c, although for compatibility