Skip to content

Commit

Permalink
Update areSameEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadeline committed Sep 29, 2020
1 parent 33d30c9 commit 85adf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/pythonEnvironments/base/envsCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { cloneDeep } from 'lodash';
import { getGlobalPersistentStore, IPersistentStore } from '../common/externalDependencies';
import { PythonEnvInfo } from './info';
import { areSameEnvironment } from './info/env';
import { areSameEnv } from './info/env';

/**
* Represents the environment info cache to be used by the cache locator.
Expand Down Expand Up @@ -81,7 +81,7 @@ export class PythonEnvInfoCache implements IEnvsCache {
}

public filterEnvs(env: PythonEnvInfo | string): PythonEnvInfo[] | undefined {
const result = this.envsList?.filter((info) => areSameEnvironment(info, env));
const result = this.envsList?.filter((info) => areSameEnv(info, env));

if (result) {
return cloneDeep(result);
Expand Down

0 comments on commit 85adf80

Please sign in to comment.