Skip to content

Commit c8a999e

Browse files
author
Arvid Paeglit
committed
fixed linter suggestions:
- === instead of == - importation order
1 parent 2c735be commit c8a999e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/deepcode/DeepCodeExtension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as vscode from 'vscode';
22
import open from 'open';
33

4+
import { emitter, ISupportedFiles } from '@deepcode/tsc';
45
import { ExtensionInterface } from '../interfaces/DeepCodeInterfaces';
56
import DeepCodeLib from './lib/modules/DeepCodeLib';
67
import createFileWatcher from './lib/watchers/FilesWatcher';
7-
import { emitter, ISupportedFiles } from '@deepcode/tsc';
88

99
import {
1010
DEEPCODE_START_COMMAND,
@@ -150,7 +150,7 @@ class DeepCodeExtension extends DeepCodeLib implements ExtensionInterface {
150150
}
151151

152152
onSupportedFilesLoaded(data: ISupportedFiles | null) {
153-
const msg = !!data ? 'Ignore rules loading' : 'Loading';
153+
const msg = data ? 'Ignore rules loading' : 'Loading';
154154

155155
this.updateStatus(DEEPCODE_ANALYSIS_STATUS.FILTERS, msg);
156156

src/deepcode/lib/modules/LoginModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class LoginModule extends ReportModule implements LoginModuleInterface
4242
}
4343

4444
const response = await startSession({ baseURL: this.baseURL, source: this.source });
45-
if (response.type == 'error') {
45+
if (response.type === 'error') {
4646
throw new Error(errorsLogs.login);
4747
}
4848

src/test/runTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { runTests } from 'vscode-test';
44

55
async function main() {
66
try {
7-
87
console.log('STARTING TESTS');
98

109
// The folder containing the Extension Manifest package.json

0 commit comments

Comments
 (0)