Skip to content

Commit a82f40f

Browse files
committed
Remove unnecessary config check.
This used to be valid when expanded state lived in the db config, but it's now stored in workspace storage.
1 parent 4db3cd6 commit a82f40f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ export class DbManager {
6767
dbItem: DbItem,
6868
itemExpanded: boolean,
6969
): Promise<void> {
70-
const configResult = this.dbConfigStore.getConfig();
71-
if (configResult.isFailure) {
72-
throw Error("Cannot update expanded state if config is not loaded");
73-
}
74-
7570
const currentExpandedItems = this.getExpandedItems();
7671

7772
const newExpandedItems = updateItemInExpandedState(

0 commit comments

Comments
 (0)