Remove unused checks

This commit is contained in:
Nora
2022-12-09 09:59:59 +00:00
parent 1c1117f7a3
commit e7bab9207d

View File

@@ -1,6 +1,5 @@
import { window } from "vscode";
import { App, AppMode } from "../common/app";
import { isCanary, isNewQueryRunExperienceEnabled } from "../config";
import { App } from "../common/app";
import { extLogger } from "../common";
import { DisposableObject } from "../pure/disposable-object";
import { DbConfigStore } from "./config/db-config-store";
@@ -19,18 +18,7 @@ export class DbModule extends DisposableObject {
this.dbManager = new DbManager(app, this.dbConfigStore);
}
public async initialize(app: App): Promise<void> {
if (
app.mode !== AppMode.Development ||
!isCanary() ||
!isNewQueryRunExperienceEnabled()
) {
// Currently, we only want to expose the new database panel when we
// are in development and canary mode and the developer has enabled the
// new query run experience.
return;
}
public async initialize(): Promise<void> {
void extLogger.log("Initializing database module");
await this.dbConfigStore.initialize();
@@ -49,6 +37,6 @@ export class DbModule extends DisposableObject {
export async function initializeDbModule(app: App): Promise<DbModule> {
const dbModule = new DbModule(app);
await dbModule.initialize(app);
await dbModule.initialize();
return dbModule;
}