File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export class CxInstaller {
1515 private cliVersion : string ;
1616 private readonly resourceDirPath : string ;
1717 private readonly cliDefaultVersion = '2.2.5' ; // This will be used if the version file is not found. Should be updated with the latest version.
18- private static installSemaphore = new Semaphore ( 1 ) ; // Semaphore with 1 slot
1918
2019 constructor ( platform : string ) {
2120 this . platform = platform ;
@@ -48,7 +47,6 @@ export class CxInstaller {
4847
4948
5049 async downloadIfNotInstalledCLI ( ) : Promise < void > {
51- const [ _ , release ] = await CxInstaller . installSemaphore . acquire ( ) ;
5250 try {
5351 await fs . promises . mkdir ( this . resourceDirPath , { recursive : true } ) ;
5452
@@ -76,8 +74,6 @@ export class CxInstaller {
7674 logger . info ( 'Extracted CLI to:' , this . resourceDirPath ) ;
7775 } catch ( error ) {
7876 logger . error ( 'Error during installation:' , error ) ;
79- } finally {
80- release ( ) ;
8177 }
8278 }
8379
You can’t perform that action at this time.
0 commit comments