From c38a07e1b83269177303d0768104014c28a8583f Mon Sep 17 00:00:00 2001 From: Andrew DiLosa Date: Mon, 16 May 2022 19:56:14 -0700 Subject: [PATCH] appease the linter --- dist/setup/index.js | 2 +- src/setup-python.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index e37bd774..1ace5249 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6095,7 +6095,7 @@ function resolveVersionInput() { if (version) { return version; } - const versionFilePath = path.join(process.env.GITHUB_WORKSPACE, versionFile || ".python-version"); + const versionFilePath = path.join(process.env.GITHUB_WORKSPACE, versionFile || '.python-version'); if (!fs_1.default.existsSync(versionFilePath)) { throw new Error(`The specified python version file at: ${versionFilePath} does not exist`); } diff --git a/src/setup-python.ts b/src/setup-python.ts index 457a565c..a8288e5d 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -30,7 +30,7 @@ function resolveVersionInput(): string { core.warning( 'Both python-version and python-version-file inputs are specified, only python-version will be used' ); - } + } if (version) { return version; @@ -38,7 +38,7 @@ function resolveVersionInput(): string { const versionFilePath = path.join( process.env.GITHUB_WORKSPACE!, - versionFile || ".python-version" + versionFile || '.python-version' ); if (!fs.existsSync(versionFilePath)) { throw new Error(