From 56f6060254e1c762cbbe5d69d3831ab68d2ee2ac Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 30 Jun 2022 14:41:09 +0200 Subject: [PATCH] Fix naming --- src/setup-python.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/setup-python.ts b/src/setup-python.ts index 58ebd8d..62cee96 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -39,15 +39,15 @@ function resolveVersionInput(): string { if (versionFile) { const defaultVersionFile = '.python-version'; - const VersionFileExists = fs.existsSync(versionFile); + const versionFileExists = fs.existsSync(versionFile); const defaultVersionFileExists = fs.existsSync(defaultVersionFile); - if (!VersionFileExists && !defaultVersionFileExists) { + if (!versionFileExists && !defaultVersionFileExists) { throw new Error( `The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found` ); } - if (VersionFileExists) { + if (versionFileExists) { version = fs.readFileSync(versionFile, 'utf8'); core.info(`Resolved ${versionFile} as ${version}`); } else {