Skip to content

Commit 5e571a3

Browse files
committed
replace let by const
1 parent b295089 commit 5e571a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editors/code/src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export function viewItemTree(ctx: Ctx): Cmd {
473473

474474
function crateGraph(ctx: Ctx, full: boolean): Cmd {
475475
return async () => {
476-
let node_modules_path = vscode.Uri.file(path.join(ctx.extensionPath, "node_modules"));
476+
const node_modules_path = vscode.Uri.file(path.join(ctx.extensionPath, "node_modules"));
477477

478478
const panel = vscode.window.createWebviewPanel("rust-analyzer.crate-graph", "rust-analyzer crate graph", vscode.ViewColumn.Two, {
479479
enableScripts: true,
@@ -486,7 +486,7 @@ function crateGraph(ctx: Ctx, full: boolean): Cmd {
486486

487487
const dot = await ctx.client.sendRequest(ra.viewCrateGraph, params);
488488

489-
let scripts = [
489+
const scripts = [
490490
{ file: vscode.Uri.joinPath(node_modules_path, 'd3', 'dist', 'd3.min.js') },
491491
{ file: vscode.Uri.joinPath(node_modules_path, '@hpcc-js', 'wasm', 'dist', 'index.min.js'), worker: true },
492492
{ file: vscode.Uri.joinPath(node_modules_path, 'd3-graphviz', 'build', 'd3-graphviz.min.js') },

0 commit comments

Comments
 (0)