Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Mar 14, 2024
1 parent 69fa0cf commit 3e9c170
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ export class Conda {
});
}

public static async getConda(shellPath?: string, useWorkerThreads?: boolean): Promise<Conda | undefined> {
public static async getConda(shellPath?: string): Promise<Conda | undefined> {
if (Conda.condaPromise.get(shellPath) === undefined || isTestExecution()) {
Conda.condaPromise.set(shellPath, Conda.locate(shellPath, useWorkerThreads));
Conda.condaPromise.set(shellPath, Conda.locate(shellPath));
}
return Conda.condaPromise.get(shellPath);
}
Expand All @@ -293,11 +293,7 @@ export class Conda {
*
* @return A Conda instance corresponding to the binary, if successful; otherwise, undefined.
*/
private static async locate(shellPath?: string, useWorkerThread?: boolean): Promise<Conda | undefined> {
let useWorkerThreads: boolean;
if (useWorkerThread === undefined) {
useWorkerThreads = false;
}
private static async locate(shellPath?: string): Promise<Conda | undefined> {
traceVerbose(`Searching for conda.`);
const home = getUserHomeDir();
let customCondaPath: string | undefined = 'conda';
Expand Down

0 comments on commit 3e9c170

Please sign in to comment.