Skip to content

Commit de38180

Browse files
committed
Fix lint
1 parent 2f92477 commit de38180

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

extensions/ql-vscode/src/databases.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,13 +464,11 @@ function eventFired<T>(event: vscode.Event<T>, timeoutMs = 1000): Promise<T | un
464464
}
465465

466466
export class DatabaseManager extends DisposableObject {
467-
private readonly _onDidChangeDatabaseItem =
468-
this.push(new vscode.EventEmitter<DatabaseItem | undefined>());
467+
private readonly _onDidChangeDatabaseItem = this.push(new vscode.EventEmitter<DatabaseItem | undefined>());
469468

470469
readonly onDidChangeDatabaseItem = this._onDidChangeDatabaseItem.event;
471470

472-
private readonly _onDidChangeCurrentDatabaseItem =
473-
this.push(new vscode.EventEmitter<DatabaseItem | undefined>());
471+
private readonly _onDidChangeCurrentDatabaseItem = this.push(new vscode.EventEmitter<DatabaseItem | undefined>());
474472
readonly onDidChangeCurrentDatabaseItem = this._onDidChangeCurrentDatabaseItem.event;
475473

476474
private readonly _databaseItems: DatabaseItemImpl[] = [];

extensions/ql-vscode/src/test-adapter.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export class QLTestAdapter extends DisposableObject implements TestAdapter {
8787
private readonly _tests = this.push(
8888
new EventEmitter<TestLoadStartedEvent | TestLoadFinishedEvent>());
8989
private readonly _testStates = this.push(
90-
new EventEmitter<TestRunStartedEvent | TestRunFinishedEvent | TestSuiteEvent |
91-
TestEvent>());
90+
new EventEmitter<TestRunStartedEvent | TestRunFinishedEvent | TestSuiteEvent | TestEvent>());
9291
private readonly _autorun = this.push(new EventEmitter<void>());
9392
private runningTask?: vscode.CancellationTokenSource = undefined;
9493

@@ -108,19 +107,15 @@ export class QLTestAdapter extends DisposableObject implements TestAdapter {
108107
return this._tests.event;
109108
}
110109

111-
public get testStates(): Event<TestRunStartedEvent | TestRunFinishedEvent | TestSuiteEvent |
112-
TestEvent> {
113-
110+
public get testStates(): Event<TestRunStartedEvent | TestRunFinishedEvent | TestSuiteEvent | TestEvent> {
114111
return this._testStates.event;
115112
}
116113

117114
public get autorun(): Event<void> | undefined {
118115
return this._autorun.event;
119116
}
120117

121-
private static createTestOrSuiteInfos(testNodes: readonly QLTestNode[]):
122-
(TestSuiteInfo | TestInfo)[] {
123-
118+
private static createTestOrSuiteInfos(testNodes: readonly QLTestNode[]): (TestSuiteInfo | TestInfo)[] {
124119
return testNodes.map((childNode) => {
125120
return QLTestAdapter.createTestOrSuiteInfo(childNode);
126121
});
@@ -129,11 +124,9 @@ export class QLTestAdapter extends DisposableObject implements TestAdapter {
129124
private static createTestOrSuiteInfo(testNode: QLTestNode): TestSuiteInfo | TestInfo {
130125
if (testNode instanceof QLTestFile) {
131126
return QLTestAdapter.createTestInfo(testNode);
132-
}
133-
else if (testNode instanceof QLTestDirectory) {
127+
} else if (testNode instanceof QLTestDirectory) {
134128
return QLTestAdapter.createTestSuiteInfo(testNode, testNode.name);
135-
}
136-
else {
129+
} else {
137130
throw new Error('Unexpected test type.');
138131
}
139132
}
@@ -148,9 +141,7 @@ export class QLTestAdapter extends DisposableObject implements TestAdapter {
148141
};
149142
}
150143

151-
private static createTestSuiteInfo(testDirectory: QLTestDirectory, label: string):
152-
TestSuiteInfo {
153-
144+
private static createTestSuiteInfo(testDirectory: QLTestDirectory, label: string): TestSuiteInfo {
154145
return {
155146
type: 'suite',
156147
id: testDirectory.path,

0 commit comments

Comments
 (0)