Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jul 5, 2024
1 parent 4ad93ee commit 63b8218
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main() {
const range = parseVersionRange(
denoVersionFile
? getDenoVersionFromFile(denoVersionFile)
: core.getInput("deno-version")
: core.getInput("deno-version"),
);

if (range === null) {
Expand All @@ -36,9 +36,9 @@ async function main() {
}

core.info(
`Going to install ${version.isCanary ? "canary" : "stable"} version ${
version.version
}.`
`Going to install ${
version.isCanary ? "canary" : "stable"
} version ${version.version}.`,
);

await install(version);
Expand Down
8 changes: 4 additions & 4 deletions src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function parseVersionRange(version) {
function getDenoVersionFromFile(versionFilePath) {
if (!fs.existsSync(versionFilePath)) {
throw new Error(
`The specified node version file at: ${versionFilePath} does not exist`
`The specified node version file at: ${versionFilePath} does not exist`,
);
}

Expand All @@ -70,11 +70,11 @@ async function resolveVersion({ range, isCanary }) {
if (isCanary) {
if (range === "latest") {
const res = await fetchWithRetries(
"https://dl.deno.land/canary-latest.txt"
"https://dl.deno.land/canary-latest.txt",
);
if (res.status !== 200) {
throw new Error(
"Failed to fetch canary version info from dl.deno.land. Please try again later."
"Failed to fetch canary version info from dl.deno.land. Please try again later.",
);
}
const version = (await res.text()).trim();
Expand All @@ -86,7 +86,7 @@ async function resolveVersion({ range, isCanary }) {
const res = await fetchWithRetries("https://deno.com/versions.json");
if (res.status !== 200) {
throw new Error(
"Failed to fetch stable version info from deno.com/versions.json. Please try again later."
"Failed to fetch stable version info from deno.com/versions.json. Please try again later.",
);
}
const versionJson = await res.json();
Expand Down

0 comments on commit 63b8218

Please sign in to comment.