Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
use const instead of let
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelPhase committed Apr 26, 2019
1 parent 8191c48 commit e63da0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Delve {
}

// read env from disk and merge into env variables
let envs = [process.env];
const envs = [process.env];

try {
if (typeof launchArgs.envFile === 'string') {
Expand Down
4 changes: 2 additions & 2 deletions src/goPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ export function parseEnvFile(path: string): { [key: string]: string } {
}

export function parseEnvFiles(paths: string[]): { [key: string]: string }[] {
let envs: { [key: string]: any }[] = [];
const envs: { [key: string]: any }[] = [];

for (let i = 0; i < paths.length; i++) {
const path = paths[i];
let env = parseEnvFile(path);
const env = parseEnvFile(path);

envs.push(env);
}
Expand Down

0 comments on commit e63da0e

Please sign in to comment.