Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-08-21 03:45:42 +0300
committerisaacs <i@izs.me>2020-08-21 03:46:01 +0300
commitfcf5fb00b65340ece7f83a6454e358c5824fbadb (patch)
tree560a9c7efc943c5609785ddf25b528a80561450f /lib/utils
parent10fcff73a3381ea5e6dcb03888679ae4b501d2f0 (diff)
lint fixes
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/config.js3
-rw-r--r--lib/utils/npm-usage.js1
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/utils/config.js b/lib/utils/config.js
index 72d2fc3a0..5c063c5b8 100644
--- a/lib/utils/config.js
+++ b/lib/utils/config.js
@@ -9,7 +9,6 @@ const {
}
} = require('@npmcli/config')
-const { dirname } = require('path')
const isWindows = require('./is-windows.js')
const editor = process.env.EDITOR ||
@@ -36,7 +35,7 @@ const unicode = /UTF-?8$/i.test(
// use LOCALAPPDATA on Windows, if set
// https://github.com/npm/cli/pull/899
-const cacheRoot = isWindows && process.env.LOCALAPPDATA || '~'
+const cacheRoot = (isWindows && process.env.LOCALAPPDATA) || '~'
const cacheExtra = isWindows ? 'npm-cache' : '.npm'
const cache = `${cacheRoot}/${cacheExtra}`
diff --git a/lib/utils/npm-usage.js b/lib/utils/npm-usage.js
index 845332915..77eb97317 100644
--- a/lib/utils/npm-usage.js
+++ b/lib/utils/npm-usage.js
@@ -82,4 +82,3 @@ const usages = () => {
(usage.split('\n').join('\n' + (new Array(maxLen + 6).join(' '))))
}).join('\n')
}
-