File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ export class CxWrapper {
5050 }
5151
5252 static async getInstance ( cxScanConfig : CxConfig , logFilePath : string ) : Promise < CxWrapper > {
53- const [ _ , release ] = await this . semaphore . acquire ( ) ;
54- let key = this . generateKey ( cxScanConfig , logFilePath ) ;
53+ const [ , release ] = await this . semaphore . acquire ( ) ;
54+ const key = this . generateKey ( cxScanConfig , logFilePath ) ;
5555 let wrapper = CxWrapper . instances . get ( key ) ;
5656 if ( ! wrapper ) {
5757 wrapper = new CxWrapper ( cxScanConfig , logFilePath ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import {CxConfig} from "./CxConfig";
33
44class CxWrapperFactory {
55 static async createWrapper ( cxScanConfig : CxConfig , logFilePath ?: string ) : Promise < CxWrapper > {
6- let wrapper : CxWrapper ;
7- wrapper = await CxWrapper . getInstance ( cxScanConfig , logFilePath ) ;
6+ const wrapper = await CxWrapper . getInstance ( cxScanConfig , logFilePath ) ;
87 await wrapper . init ( ) ;
98 return wrapper ;
109 }
You can’t perform that action at this time.
0 commit comments