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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-06-29 02:22:53 +0300
committerisaacs <i@izs.me>2019-06-30 06:23:54 +0300
commit8bd8e909f0699654e8ae5711e3421ad8edfcdcea (patch)
treeb943dc7dede5e7e50f49bc27bcfc94652f9ac37f /node_modules/cacache/lib/util/fix-owner.js
parent87fef4e356f30941f2ee39f2f774ad2086239a00 (diff)
cacache@11.3.3
Diffstat (limited to 'node_modules/cacache/lib/util/fix-owner.js')
-rw-r--r--node_modules/cacache/lib/util/fix-owner.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/cacache/lib/util/fix-owner.js b/node_modules/cacache/lib/util/fix-owner.js
index 0c8f9f875..563724ca6 100644
--- a/node_modules/cacache/lib/util/fix-owner.js
+++ b/node_modules/cacache/lib/util/fix-owner.js
@@ -27,7 +27,7 @@ function fixOwner (filepath, uid, gid) {
filepath,
typeof uid === 'number' ? uid : process.getuid(),
typeof gid === 'number' ? gid : process.getgid()
- ).catch({code: 'ENOENT'}, () => null)
+ ).catch({ code: 'ENOENT' }, () => null)
)
}
@@ -65,7 +65,7 @@ function mkdirfix (p, uid, gid, cb) {
if (made) {
return fixOwner(made, uid, gid).then(() => made)
}
- }).catch({code: 'EEXIST'}, () => {
+ }).catch({ code: 'EEXIST' }, () => {
// There's a race in mkdirp!
return fixOwner(p, uid, gid).then(() => null)
})