diff options
-rw-r--r-- | lib/install/inflate-shrinkwrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/install/inflate-shrinkwrap.js b/lib/install/inflate-shrinkwrap.js index 8cb75626b..7ad966ea0 100644 --- a/lib/install/inflate-shrinkwrap.js +++ b/lib/install/inflate-shrinkwrap.js @@ -19,13 +19,13 @@ module.exports = function (tree, swdeps, opts, finishInflating) { fetchPackageMetadata = BB.promisify(require('../fetch-package-metadata.js')) addBundled = BB.promisify(fetchPackageMetadata.addBundled) } - if (!npm.config.get('shrinkwrap') || !npm.config.get('package-lock')) { - return finishInflating() - } if (arguments.length === 3) { finishInflating = opts opts = {} } + if (!npm.config.get('shrinkwrap') || !npm.config.get('package-lock')) { + return finishInflating() + } tree.loaded = true return inflateShrinkwrap(tree.path, tree, swdeps, opts).then( () => finishInflating(), |