From 96fe2d10a4da0521b7cd72d90fd42121f9311978 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 6 Oct 2019 01:02:34 +0900 Subject: Update eslint and @typescript-eslint (denoland/deno_std#621) Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e --- installer/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'installer') diff --git a/installer/mod.ts b/installer/mod.ts index 1b9217cd4..ef94e2e4e 100644 --- a/installer/mod.ts +++ b/installer/mod.ts @@ -79,7 +79,7 @@ function getFlagFromPermission(perm: Permission): string { function getInstallerDir(): string { // In Windows's Powershell $HOME environmental variable maybe null // if so use $HOMEPATH instead. - let { HOME, HOMEPATH } = env(); + const { HOME, HOMEPATH } = env(); const HOME_PATH = HOME || HOMEPATH; @@ -109,7 +109,7 @@ function checkIfExistsInPath(filePath: string): boolean { // $HOMEDRIVE is only used on Windows. const { PATH, Path, HOMEDRIVE } = env(); - let envPath = (PATH as string) || (Path as string) || ""; + const envPath = (PATH as string) || (Path as string) || ""; const paths = envPath.split(isWindows ? ";" : ":"); -- cgit v1.2.3