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 {
50
50
}
51
51
52
52
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 ) ;
55
55
let wrapper = CxWrapper . instances . get ( key ) ;
56
56
if ( ! wrapper ) {
57
57
wrapper = new CxWrapper ( cxScanConfig , logFilePath ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import {CxConfig} from "./CxConfig";
3
3
4
4
class CxWrapperFactory {
5
5
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 ) ;
8
7
await wrapper . init ( ) ;
9
8
return wrapper ;
10
9
}
You can’t perform that action at this time.
0 commit comments