Skip to content

Commit

Permalink
fix: linter & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Nov 3, 2023
1 parent 60f5d06 commit fb021c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/snyk/base/modules/baseSnykModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ export class ModuleVulnerabilityCountProviderLS {
return undefined;
}

let tempResultArray: OssFileResult[] = [];
let resultCache = new Map<string, OssResultBody>();
const tempResultArray: OssFileResult[] = [];
const resultCache = new Map<string, OssResultBody>();

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<T>[]
else {
Expand All @@ -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,
Expand Down

0 comments on commit fb021c2

Please sign in to comment.