Skip to content

Commit

Permalink
fix(go): check for res from github datasource before continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Mar 28, 2020
1 parent 7a02ead commit 05d5b44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/datasource/go/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export async function getPkgReleases({
const source = await getDatasource(lookupName);
if (source && source.datasource === github.id) {
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
* and that tag should be used instead of just va.b.c, although for compatibility
Expand Down

0 comments on commit 05d5b44

Please sign in to comment.