Skip to content

Commit e7bab92

Browse files
committed
Remove unused checks
1 parent 1c1117f commit e7bab92

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

extensions/ql-vscode/src/databases/db-module.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { window } from "vscode";
2-
import { App, AppMode } from "../common/app";
3-
import { isCanary, isNewQueryRunExperienceEnabled } from "../config";
2+
import { App } from "../common/app";
43
import { extLogger } from "../common";
54
import { DisposableObject } from "../pure/disposable-object";
65
import { DbConfigStore } from "./config/db-config-store";
@@ -19,18 +18,7 @@ export class DbModule extends DisposableObject {
1918
this.dbManager = new DbManager(app, this.dbConfigStore);
2019
}
2120

22-
public async initialize(app: App): Promise<void> {
23-
if (
24-
app.mode !== AppMode.Development ||
25-
!isCanary() ||
26-
!isNewQueryRunExperienceEnabled()
27-
) {
28-
// Currently, we only want to expose the new database panel when we
29-
// are in development and canary mode and the developer has enabled the
30-
// new query run experience.
31-
return;
32-
}
33-
21+
public async initialize(): Promise<void> {
3422
void extLogger.log("Initializing database module");
3523

3624
await this.dbConfigStore.initialize();
@@ -49,6 +37,6 @@ export class DbModule extends DisposableObject {
4937

5038
export async function initializeDbModule(app: App): Promise<DbModule> {
5139
const dbModule = new DbModule(app);
52-
await dbModule.initialize(app);
40+
await dbModule.initialize();
5341
return dbModule;
5442
}

0 commit comments

Comments
 (0)