From 24a149faed33dc1faeff78877fb9f95bc5c6a9e3 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Mon, 20 Apr 2015 04:34:44 -0400 Subject: Stop stray progressbars from appearing when logging is used in non-progress commands --- lib/npm.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/npm.js') diff --git a/lib/npm.js b/lib/npm.js index d530ea8d7..67cc79876 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -157,8 +157,6 @@ fullList = npm.fullList = fullList.filter(function (c) { return littleGuys.indexOf(c) === -1 }) -showProgress = log.progressEnabled - Object.keys(abbrevs).concat(plumbing).forEach(function addCommand (c) { Object.defineProperty(npm.commands, c, { get : function () { if (!loaded) throw new Error( @@ -178,7 +176,6 @@ Object.keys(abbrevs).concat(plumbing).forEach(function addCommand (c) { var args = Array.prototype.slice.call(arguments, 0) if (typeof args[args.length - 1] !== "function") { args.push(defaultCb) - log.enableProgress() } if (args.length === 1) args.unshift([]) -- cgit v1.2.3