File tree 2 files changed +8
-13
lines changed
2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -65271,12 +65271,10 @@ function resolveVersionInput() {
65271
65271
}
65272
65272
if (versionFile) {
65273
65273
if (!fs_1.default.existsSync(versionFile)) {
65274
- logWarning(`The specified python version file at: ${versionFile} does not exist. Attempting to find .python-version file.`);
65275
- if (!fs_1.default.existsSync('.python-version')) {
65276
- throw new Error(`The specified python version file at: ${versionFile} does not exist and default .python-version file isn't found.`);
65277
- }
65278
- else {
65279
- versionFile = '.python-version';
65274
+ logWarning(`The specified python version file at: ${versionFile} doesn't exist. Attempting to find .python-version file.`);
65275
+ versionFile = '.python-version';
65276
+ if (!fs_1.default.existsSync(versionFile)) {
65277
+ throw new Error(`The ${versionFile} doesn't exist.`);
65280
65278
}
65281
65279
}
65282
65280
version = fs_1.default.readFileSync(versionFile, 'utf8');
Original file line number Diff line number Diff line change @@ -39,14 +39,11 @@ function resolveVersionInput(): string {
39
39
if ( versionFile ) {
40
40
if ( ! fs . existsSync ( versionFile ) ) {
41
41
logWarning (
42
- `The specified python version file at: ${ versionFile } does not exist. Attempting to find .python-version file.`
42
+ `The specified python version file at: ${ versionFile } doesn't exist. Attempting to find .python-version file.`
43
43
) ;
44
- if ( ! fs . existsSync ( '.python-version' ) ) {
45
- throw new Error (
46
- `The specified python version file at: ${ versionFile } does not exist and default .python-version file isn't found.`
47
- ) ;
48
- } else {
49
- versionFile = '.python-version' ;
44
+ versionFile = '.python-version' ;
45
+ if ( ! fs . existsSync ( versionFile ) ) {
46
+ throw new Error ( `The ${ versionFile } doesn't exist.` ) ;
50
47
}
51
48
}
52
49
You can’t perform that action at this time.
0 commit comments