Skip to content

Commit 93a2b06

Browse files
committed
Remove unnecessary assignment to variable
This was flagged by CodeQL.
1 parent 30ebe0a commit 93a2b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ export class DatabaseUI extends DisposableObject {
306306
`${workspace.workspaceFolders[0].uri}/.tours/codeql-tutorial-database`,
307307
);
308308

309-
let databaseItem = this.databaseManager.findDatabaseItem(uri);
309+
const databaseItem = this.databaseManager.findDatabaseItem(uri);
310310
if (databaseItem === undefined) {
311311
const makeSelected = true;
312312
const nameOverride = "CodeQL Tutorial Database";
313313
const isTutorialDatabase = true;
314314

315-
databaseItem = await this.databaseManager.openDatabase(
315+
await this.databaseManager.openDatabase(
316316
progress,
317317
token,
318318
uri,

0 commit comments

Comments
 (0)