summaryrefslogtreecommitdiff
path: root/deps/npm/lib/install/action/extract-worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/install/action/extract-worker.js')
-rw-r--r--deps/npm/lib/install/action/extract-worker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/lib/install/action/extract-worker.js b/deps/npm/lib/install/action/extract-worker.js
index 24508c7804..2b082b4a57 100644
--- a/deps/npm/lib/install/action/extract-worker.js
+++ b/deps/npm/lib/install/action/extract-worker.js
@@ -10,9 +10,9 @@ module.exports = (args, cb) => {
const spec = parsed[0]
const extractTo = parsed[1]
const opts = parsed[2]
- if (!opts.log && opts.loglevel) {
+ if (!opts.log) {
opts.log = npmlog
- opts.log.level = opts.loglevel
}
+ opts.log.level = opts.loglevel || opts.log.level
BB.resolve(extract(spec, extractTo, opts)).nodeify(cb)
}