Skip to content

Commit a09505c

Browse files
committed
fix linter
1 parent 0553d9e commit a09505c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/wrapper/CxWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

src/main/wrapper/CxWrapperFactory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import {CxConfig} from "./CxConfig";
33

44
class 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
}

0 commit comments

Comments
 (0)