@@ -29,9 +29,9 @@ class LeetCodeExecutor implements Disposable {
29
29
30
30
public async getLeetCodeBinaryPath ( ) : Promise < string > {
31
31
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" ) } "` ) } ` ;
33
33
}
34
- return `"${ path . join ( yield `" ${ this . leetCodeRootPath } "` , "bin" , "leetcode" ) } "` ;
34
+ return `"${ path . join ( this . leetCodeRootPath , "bin" , "leetcode" ) } "` ;
35
35
}
36
36
37
37
public async meetRequirements ( ) : Promise < boolean > {
@@ -159,7 +159,7 @@ class LeetCodeExecutor implements Disposable {
159
159
160
160
public async getCompaniesAndTags ( ) : Promise < { companies : { [ key : string ] : string [ ] } , tags : { [ key : string ] : string [ ] } } > {
161
161
// 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" ) ;
163
163
const companiesTagsSrc : string = ( await fse . readFile ( companiesTagsPath , "utf8" ) ) . replace (
164
164
"module.exports = plugin" ,
165
165
"module.exports = { COMPONIES, TAGS }" ,
0 commit comments