Skip to content

Commit

Permalink
fix: Support versions of Nextflow without "all" variants
Browse files Browse the repository at this point in the history
  • Loading branch information
MillironX committed Jan 6, 2024
1 parent ab9802a commit d70a853
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/NextflowRelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

return dl_asset.browser_download_url
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
}
}

0 comments on commit d70a853

Please sign in to comment.