Skip to content

Commit f3ad33f

Browse files
committed
Update leetCodeExecutor.ts
1 parent f0d01f7 commit f3ad33f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/leetCodeExecutor.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ class LeetCodeExecutor implements Disposable {
2828
}
2929

3030
public async getLeetCodeBinaryPath(): Promise<string> {
31-
return __awaiter(this, void 0, void 0, function* () {
32-
if (wsl.useWsl()) {
33-
return `${yield wsl.toWslPath(`"${path.join(yield `"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`)}`;
34-
}
35-
return `"${path.join(yield `"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`;
36-
});
31+
if (wsl.useWsl()) {
32+
return `${yield wsl.toWslPath(`"${path.join(yield`"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`)}`;
33+
}
34+
return `"${path.join(yield`"${this.leetCodeRootPath}"`, "bin", "leetcode")}"`;
3735
}
3836

3937
public async meetRequirements(): Promise<boolean> {

0 commit comments

Comments
 (0)