diff --git a/src/snyk/base/modules/baseSnykModule.ts b/src/snyk/base/modules/baseSnykModule.ts index 01b0367d8..5681dafdf 100644 --- a/src/snyk/base/modules/baseSnykModule.ts +++ b/src/snyk/base/modules/baseSnykModule.ts @@ -25,7 +25,6 @@ import { ICodeSettings } from '../../snykCode/codeSettings'; import SnykEditorsWatcher from '../../snykCode/watchers/editorsWatcher'; import { OssServiceLanguageServer } from '../../snykOss/ossServiceLanguageServer'; import { OssService } from '../../snykOss/services/ossService'; -import { OssVulnerabilityCountService } from '../../snykOss/services/vulnerabilityCount/ossVulnerabilityCountService'; import { OssVulnerabilityCountServiceLS } from '../../snykOss/services/vulnerabilityCount/ossVulnerabilityCountServiceLS'; import { IAuthenticationService } from '../services/authenticationService'; import { ScanModeService } from '../services/scanModeService'; @@ -51,7 +50,6 @@ export default abstract class BaseSnykModule implements IBaseSnykModule { protected advisorService?: AdvisorProvider; protected commandController: CommandController; protected scanModeService: ScanModeService; - protected ossVulnerabilityCountService: OssVulnerabilityCountService; protected ossVulnerabilityCountServiceLanguageServer: OssVulnerabilityCountServiceLS; protected advisorScoreDisposable: AdvisorService; protected languageServer: ILanguageServer; diff --git a/src/snyk/snykOss/services/vulnerabilityCount/vulnerabilityCountProviderLS.ts b/src/snyk/snykOss/services/vulnerabilityCount/vulnerabilityCountProviderLS.ts index f1d746aa9..79dc556de 100644 --- a/src/snyk/snykOss/services/vulnerabilityCount/vulnerabilityCountProviderLS.ts +++ b/src/snyk/snykOss/services/vulnerabilityCount/vulnerabilityCountProviderLS.ts @@ -164,13 +164,13 @@ export class ModuleVulnerabilityCountProviderLS { return undefined; } - let tempResultArray: OssFileResult[] = []; - let resultCache = new Map(); + const tempResultArray: OssFileResult[] = []; + const resultCache = new Map(); for (const [, value] of this.ossService.result) { // value is Error if (value instanceof Error) { - tempResultArray.push(new CliError(value as Error)); + tempResultArray.push(new CliError(value)); } // value is Issue[] else { @@ -190,7 +190,7 @@ export class ModuleVulnerabilityCountProviderLS { resultCache.set(issue.filePath, res); } - let tempVuln: OssVulnerability = { + const tempVuln: OssVulnerability = { id: issue.id, license: issue.additionalData.license, identifiers: issue.additionalData.identifiers,