Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong committed Oct 23, 2023
1 parent 78a8100 commit 88dd379
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/snyk/common/commands/commandController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
SNYK_OPEN_BROWSER_COMMAND,
SNYK_SET_TOKEN_COMMAND,
SNYK_TRUST_WORKSPACE_FOLDERS_COMMAND,
VSCODE_GO_TO_SETTINGS_COMMAND
VSCODE_GO_TO_SETTINGS_COMMAND,
} from '../constants/commands';
import { COMMAND_DEBOUNCE_INTERVAL, IDE_NAME, SNYK_NAME_EXTENSION, SNYK_PUBLISHER } from '../constants/general';
import { ErrorHandler } from '../error/errorHandler';
Expand Down Expand Up @@ -48,7 +48,7 @@ export class CommandController {
private languageServer: ILanguageServer,
private logger: ILog,
private analytics: IAnalytics,
) { }
) {}

openBrowser(url: string): unknown {
return this.executeCommand(SNYK_OPEN_BROWSER_COMMAND, this.openerService.openBrowserUrl.bind(this), url);
Expand Down
2 changes: 1 addition & 1 deletion src/snyk/common/services/learnService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Lesson = {
};

export class LearnService {
constructor(private commandExecutor: IVSCodeCommands) { }
constructor(private commandExecutor: IVSCodeCommands) {}

async getOssLesson(vulnerability: OssIssueCommandArg): Promise<Lesson | undefined> {
const cwe = vulnerability.identifiers?.CWE;
Expand Down
12 changes: 6 additions & 6 deletions src/snyk/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ class SnykExtension extends SnykLib implements IExtension {
this.registerCommands(vscodeContext);

const codeSecurityIssueProvider = new CodeSecurityIssueTreeProvider(
this.viewManagerService,
this.contextService,
this.snykCode,
configuration,
vsCodeLanguages,
),
this.viewManagerService,
this.contextService,
this.snykCode,
configuration,
vsCodeLanguages,
),
codeQualityIssueProvider = new CodeQualityIssueTreeProvider(
this.viewManagerService,
this.contextService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ suite('OSS VulnerabilityCountService', () => {

test('Processes file if active editor is opened on activation', () => {
window.getActiveTextEditor = () =>
({
document: undefined,
} as unknown as TextEditor);
({
document: undefined,
} as unknown as TextEditor);
workspace.onDidChangeTextDocument = sinon.fake();
window.onDidChangeActiveTextEditor = sinon.fake();

Expand Down

0 comments on commit 88dd379

Please sign in to comment.