Skip to content

Commit b31a50e

Browse files
committed
Fix const name
1 parent 6e0245c commit b31a50e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/installer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {StableReleaseAlias} from './utils';
1010

1111
type InstallationType = 'dist' | 'manifest';
1212

13-
const golangDownloadUrl = 'https://go.dev/dl/?mode=json&include=all';
13+
const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all';
1414

1515
export interface IGoVersionFile {
1616
filename: string;
@@ -338,7 +338,7 @@ export async function findMatch(
338338
let match: IGoVersion | undefined;
339339

340340
const candidates: IGoVersion[] | null = await module.exports.getVersionsDist(
341-
golangDownloadUrl
341+
GOLANG_DOWNLOAD_URL
342342
);
343343
if (!candidates) {
344344
throw new Error(`golang download url did not return results`);
@@ -436,7 +436,7 @@ async function resolveStableVersionDist(versionSpec: string, arch: string) {
436436
const archFilter = sys.getArch(arch);
437437
const platFilter = sys.getPlatform();
438438
const candidates: IGoVersion[] | null = await module.exports.getVersionsDist(
439-
golangDownloadUrl
439+
GOLANG_DOWNLOAD_URL
440440
);
441441
if (!candidates) {
442442
throw new Error(`golang download url did not return results`);

0 commit comments

Comments
 (0)