mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-11 04:52:25 +02:00
bit of cleanup
This commit is contained in:
parent
f4b0281c15
commit
7af81a4a65
3 changed files with 22 additions and 11 deletions
|
@ -96,7 +96,7 @@ export async function findMatch(
|
|||
|
||||
export async function getVersions(dlUrl: string): Promise<IGoVersion[] | null> {
|
||||
// this returns versions descending so latest is first
|
||||
let http: httpm.HttpClient = new httpm.HttpClient('setup-go');
|
||||
let http: httpm.HttpClient = new httpm.HttpClient('setup-go');
|
||||
let candidates: IGoVersion[] | null = (await http.getJson<IGoVersion[]>(
|
||||
dlUrl
|
||||
)).result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue