mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
appease the linter
This commit is contained in:
parent
bce43cfdd1
commit
c38a07e1b8
2 changed files with 3 additions and 3 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -6095,7 +6095,7 @@ function resolveVersionInput() {
|
||||||
if (version) {
|
if (version) {
|
||||||
return 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)) {
|
if (!fs_1.default.existsSync(versionFilePath)) {
|
||||||
throw new Error(`The specified python version file at: ${versionFilePath} does not exist`);
|
throw new Error(`The specified python version file at: ${versionFilePath} does not exist`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ function resolveVersionInput(): string {
|
||||||
|
|
||||||
const versionFilePath = path.join(
|
const versionFilePath = path.join(
|
||||||
process.env.GITHUB_WORKSPACE!,
|
process.env.GITHUB_WORKSPACE!,
|
||||||
versionFile || ".python-version"
|
versionFile || '.python-version'
|
||||||
);
|
);
|
||||||
if (!fs.existsSync(versionFilePath)) {
|
if (!fs.existsSync(versionFilePath)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
Loading…
Add table
Reference in a new issue