File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -452,10 +452,7 @@ export class DatabaseUI extends DisposableObject {
452452 progress : ProgressCallback ,
453453 token : CancellationToken
454454 ) : Promise < DatabaseItem | undefined > => {
455- if ( ! this . queryServer ) {
456- throw new Error ( 'Query server not started' ) ;
457- }
458- if ( await this . queryServer . cliServer . cliConstraints . supportsDatabaseUnbundle ( ) ) {
455+ if ( this . queryServer !== undefined && await this . queryServer . cliServer . cliConstraints . supportsDatabaseUnbundle ( ) ) {
459456 return await promptImportInternetDatabase (
460457 this . databaseManager ,
461458 this . storagePath ,
@@ -477,10 +474,8 @@ export class DatabaseUI extends DisposableObject {
477474 progress : ProgressCallback ,
478475 token : CancellationToken
479476 ) : Promise < DatabaseItem | undefined > => {
480- if ( ! this . queryServer ) {
481- throw new Error ( 'Query server not started' ) ;
482- }
483- if ( await this . queryServer . cliServer . cliConstraints . supportsDatabaseUnbundle ( ) ) {
477+
478+ if ( this . queryServer !== undefined && await this . queryServer . cliServer . cliConstraints . supportsDatabaseUnbundle ( ) ) {
484479 return await promptImportLgtmDatabase (
485480 this . databaseManager ,
486481 this . storagePath ,
You can’t perform that action at this time.
0 commit comments