Fixed site fallback handling.

This commit is contained in:
ThePendulum 2019-12-15 23:14:43 +01:00
parent 13b45e1709
commit ce92d13327
1 changed files with 5 additions and 1 deletions

View File

@ -273,7 +273,11 @@ function curateReleases(releases) {
}
async function attachChannelSite(release) {
if (!release.site.isFallback || !release.channel) {
if (!release.site.isFallback) {
return release.site;
}
if (!release.channel) {
throw new Error(`Unable to derive channel site from generic URL: ${release.url}.`);
}