refactor: Place latest stable release conversion inline

This commit is contained in:
Thomas A. Christensen II 2024-01-25 22:18:33 -06:00
parent 7473a3926d
commit 82d97e2453

View file

@ -68,19 +68,12 @@ export async function pull_releases(
)
}
export async function latest_stable_release_data(
export async function pull_latest_stable_release(
ok: InstanceType<typeof GitHub>
): Promise<object> {
): Promise<NextflowRelease> {
const { data: stable_release } = await ok.rest.repos.getLatestRelease(
NEXTFLOW_REPO
)
return stable_release
}
export async function pull_latest_stable_release(
ok: InstanceType<typeof GitHub>
): Promise<NextflowRelease> {
const latest_release = await latest_stable_release_data(ok)
return nextflow_release(latest_release)
return nextflow_release(stable_release)
}