Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4066e02

Browse files
committed
Update leetCodeExecutor.ts
1 parent f3ad33f commit 4066e02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/leetCodeExecutor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class LeetCodeExecutor implements Disposable {
2929

3030
public async getLeetCodeBinaryPath(): Promise<string> {
3131
if (wsl.useWsl()) {
32-
return `${yield wsl.toWslPath(`"${path.join(yield`"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`)}`;
32+
return `${await wsl.toWslPath(`"${path.join(this.leetCodeRootPath, "bin", "leetcode")}"`)}`;
3333
}
34-
return `"${path.join(yield`"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`;
34+
return `"${path.join(this.leetCodeRootPath, "bin", "leetcode")}"`;
3535
}
3636

3737
public async meetRequirements(): Promise<boolean> {
@@ -159,7 +159,7 @@ class LeetCodeExecutor implements Disposable {
159159

160160
public async getCompaniesAndTags(): Promise<{ companies: { [key: string]: string[] }, tags: { [key: string]: string[] } }> {
161161
// preprocess the plugin source
162-
const companiesTagsPath: string = path.join(await this.leetCodeRootPath, "lib", "plugins", "company.js");
162+
const companiesTagsPath: string = path.join(this.leetCodeRootPath, "lib", "plugins", "company.js");
163163
const companiesTagsSrc: string = (await fse.readFile(companiesTagsPath, "utf8")).replace(
164164
"module.exports = plugin",
165165
"module.exports = { COMPONIES, TAGS }",

0 commit comments

Comments
 (0)