Skip to content

Commit f29aff6

Browse files
Inline isFile
1 parent 3ee081e commit f29aff6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

extensions/ql-vscode/src/databases/database-fetcher.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export class DatabaseFetcher {
337337
await ensureDir(this.storagePath);
338338
const unzipPath = await this.getStorageFolder(databaseUrl, nameOverride);
339339

340-
if (this.isFile(databaseUrl)) {
340+
if (Uri.parse(databaseUrl).scheme === "file") {
341341
await this.readAndUnzip(databaseUrl, unzipPath, progress);
342342
} else {
343343
await this.fetchAndUnzip(
@@ -580,10 +580,6 @@ export class DatabaseFetcher {
580580
throw new Error(`${errorMessage}.\n\nReason: ${msg}`);
581581
}
582582

583-
private isFile(databaseUrl: string) {
584-
return Uri.parse(databaseUrl).scheme === "file";
585-
}
586-
587583
/**
588584
* Databases created by the old odasa tool will not have a zipped
589585
* source location. However, this extension works better if sources

0 commit comments

Comments
 (0)