Skip to content

Commit 392c59e

Browse files
Remove unnecessary check of undefined
1 parent 37459a1 commit 392c59e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

extensions/ql-vscode/src/databases/local-databases-ui.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,6 @@ export class DatabaseUI extends DisposableObject {
573573
"Received request to upgrade database, but there is no running query server.",
574574
);
575575
}
576-
if (databaseItem === undefined) {
577-
throw new Error(
578-
"Received request to upgrade database, but no database was provided.",
579-
);
580-
}
581576
if (databaseItem.contents === undefined) {
582577
throw new Error(
583578
"Received request to upgrade database, but database contents could not be found.",

0 commit comments

Comments
 (0)