Skip to content

Commit

Permalink
Fix const name
Browse files Browse the repository at this point in the history
  • Loading branch information
178inaba committed Apr 13, 2024
1 parent d7cb9bd commit 764529a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {StableReleaseAlias} from './utils';

type InstallationType = 'dist' | 'manifest';

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

export interface IGoVersionFile {
filename: string;
Expand Down Expand Up @@ -338,7 +338,7 @@ export async function findMatch(
let match: IGoVersion | undefined;

const candidates: IGoVersion[] | null = await module.exports.getVersionsDist(
golangDownloadUrl
GOLANG_DOWNLOAD_URL
);
if (!candidates) {
throw new Error(`golang download url did not return results`);
Expand Down Expand Up @@ -436,7 +436,7 @@ async function resolveStableVersionDist(versionSpec: string, arch: string) {
const archFilter = sys.getArch(arch);
const platFilter = sys.getPlatform();
const candidates: IGoVersion[] | null = await module.exports.getVersionsDist(
golangDownloadUrl
GOLANG_DOWNLOAD_URL
);
if (!candidates) {
throw new Error(`golang download url did not return results`);
Expand Down

0 comments on commit 764529a

Please sign in to comment.