From 50cae4776622f9cb2f6024783577bef792c2ddbb Mon Sep 17 00:00:00 2001 From: Jonathan Camara Date: Thu, 28 Apr 2022 14:18:08 -0500 Subject: [PATCH] style: fix semistandard lint errors --- dist/index.js | 10 +++++----- lib/setup-terraform.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/index.js b/dist/index.js index cdf630c..e501754 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38,13 +38,13 @@ async function downloadCLI (url) { core.debug(`Downloading Terraform CLI from ${url}`); const pathToCLIZip = await tc.downloadTool(url); - let pathToCLI = ""; + let pathToCLI = ''; if (os.platform().startsWith('win')) { - core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`) - fixedPathToCLIZip = `${pathToCLIZip}.zip` - io.mv(pathToCLIZip, fixedPathToCLIZip) - core.debug(`Moved download to ${fixedPathToCLIZip}`) + core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`); + const fixedPathToCLIZip = `${pathToCLIZip}.zip`; + io.mv(pathToCLIZip, fixedPathToCLIZip); + core.debug(`Moved download to ${fixedPathToCLIZip}`); pathToCLI = await tc.extractZip(fixedPathToCLIZip); } else { pathToCLI = await tc.extractZip(pathToCLIZip); diff --git a/lib/setup-terraform.js b/lib/setup-terraform.js index 8676f61..ef0a8fb 100644 --- a/lib/setup-terraform.js +++ b/lib/setup-terraform.js @@ -32,13 +32,13 @@ async function downloadCLI (url) { core.debug(`Downloading Terraform CLI from ${url}`); const pathToCLIZip = await tc.downloadTool(url); - let pathToCLI = ""; + let pathToCLI = ''; if (os.platform().startsWith('win')) { - core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`) - fixedPathToCLIZip = `${pathToCLIZip}.zip` - io.mv(pathToCLIZip, fixedPathToCLIZip) - core.debug(`Moved download to ${fixedPathToCLIZip}`) + core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`); + const fixedPathToCLIZip = `${pathToCLIZip}.zip`; + io.mv(pathToCLIZip, fixedPathToCLIZip); + core.debug(`Moved download to ${fixedPathToCLIZip}`); pathToCLI = await tc.extractZip(fixedPathToCLIZip); } else { pathToCLI = await tc.extractZip(pathToCLIZip);