File tree 1 file changed +3
-3
lines changed
src/client/pythonEnvironments/base/locators/composite
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ async function resolveGloballyInstalledEnv(env: BasicEnvInfo): Promise<PythonEnv
147
147
const { executablePath } = env ;
148
148
let version ;
149
149
try {
150
- version = env . version ?? parseVersionFromExecutable ( executablePath ) ;
150
+ version = parseVersionFromExecutable ( executablePath ) ;
151
151
} catch {
152
152
version = UNKNOWN_PYTHON_VERSION ;
153
153
}
@@ -170,7 +170,7 @@ async function resolveSimpleEnv(env: BasicEnvInfo): Promise<PythonEnvInfo> {
170
170
const { executablePath, kind } = env ;
171
171
const envInfo = buildEnvInfo ( {
172
172
kind,
173
- version : env . version ?? ( await getPythonVersionFromPath ( executablePath ) ) ,
173
+ version : await getPythonVersionFromPath ( executablePath ) ,
174
174
executable : executablePath ,
175
175
sysPrefix : env . envPath ,
176
176
location : env . envPath ,
@@ -243,7 +243,7 @@ async function resolveCondaEnv(env: BasicEnvInfo): Promise<PythonEnvInfo> {
243
243
} else {
244
244
executable = await conda . getInterpreterPathForEnvironment ( { prefix : envPath } ) ;
245
245
}
246
- const version = env . version ?? ( executable ? await getPythonVersionFromPath ( executable ) : undefined ) ;
246
+ const version = executable ? await getPythonVersionFromPath ( executable ) : undefined ;
247
247
const info = buildEnvInfo ( {
248
248
executable,
249
249
kind : PythonEnvKind . Conda ,
You can’t perform that action at this time.
0 commit comments