fix: Support versions of Nextflow without "all" variants

This commit is contained in:
Thomas A. Christensen II 2024-01-06 10:22:02 -06:00
parent 99c654d38a
commit aedbf9a630

View file

@ -39,6 +39,11 @@ export function nextflow_bin_url(release: object, get_all: boolean): string {
})[0]
const dl_asset = get_all ? all_asset : regular_asset
if (dl_asset) {
return dl_asset.browser_download_url
} else {
// Old pre-release versions of Nextflow didn't have an "all" variant. To
// avoid downstream errors, substitute the regular url here.
return regular_asset.browser_download_url
}
}