fix(go): fix go packages with sub packages creating wrong updates (#6978)

This commit is contained in:
pulish 2020-08-18 09:30:36 +02:00 committed by GitHub
parent 8acb8fcb40
commit ee6b961f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,8 +115,10 @@ export async function getReleases({
}); });
logger.trace({ submodReleases }, 'go.getReleases'); logger.trace({ submodReleases }, 'go.getReleases');
if (submodReleases.length > 0) { if (submodReleases.length > 0) {
res.releases = submodReleases; return {
return res; sourceUrl: res.sourceUrl,
releases: submodReleases,
};
} }
} }
if (res?.releases) { if (res?.releases) {