From 63b821882fb959a73b1a5aefefc3ae010ec0a4e9 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 5 Jul 2024 14:38:04 +0900 Subject: [PATCH] fmt --- main.js | 8 ++++---- src/version.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main.js b/main.js index 10a1ecd..33574a0 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,7 @@ async function main() { const range = parseVersionRange( denoVersionFile ? getDenoVersionFromFile(denoVersionFile) - : core.getInput("deno-version") + : core.getInput("deno-version"), ); if (range === null) { @@ -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); diff --git a/src/version.js b/src/version.js index 7748ce6..460788e 100644 --- a/src/version.js +++ b/src/version.js @@ -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`, ); } @@ -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(); @@ -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();