Fixed site fallback handling.
This commit is contained in:
parent
13b45e1709
commit
ce92d13327
|
@ -273,7 +273,11 @@ function curateReleases(releases) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function attachChannelSite(release) {
|
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}.`);
|
throw new Error(`Unable to derive channel site from generic URL: ${release.url}.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue