Default to os.arch when no arch provided

This commit is contained in:
panticmilos 2022-08-08 12:57:22 +02:00
parent 2f5755bd36
commit c5cf47b1d5
3 changed files with 23 additions and 23 deletions

View file

@ -33,7 +33,7 @@ export async function getGo(
versionSpec: string,
checkLatest: boolean,
auth: string | undefined,
arch = sys.getArch()
arch = os.arch()
) {
let osPlat: string = os.platform();
@ -178,7 +178,7 @@ export async function getInfoFromManifest(
versionSpec: string,
stable: boolean,
auth: string | undefined,
arch = sys.getArch()
arch = os.arch()
): Promise<IGoVersionInfo | null> {
let info: IGoVersionInfo | null = null;
const releases = await tc.getManifestFromRepo(