Skip to content

Commit b6aa41d

Browse files
committed
Replace undefined check with length check
1 parent 6257608 commit b6aa41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class DatabaseUI extends DisposableObject {
363363
token: CancellationToken,
364364
): Promise<void> => {
365365
try {
366-
if (workspace.workspaceFolders === undefined) {
366+
if (!workspace.workspaceFolders?.length) {
367367
throw new Error("No workspace folder is open.");
368368
} else {
369369
// This specifically refers to the database folder in

0 commit comments

Comments
 (0)