From ebbbe8cbe28c8c7782bfe27fbbd619dbef2932a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Cevey?= Date: Fri, 2 Jan 2015 17:57:34 +0000 Subject: [PATCH] Fixes #348 --- lib/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/package.js b/lib/package.js index b9a1a8316..54894d1c7 100644 --- a/lib/package.js +++ b/lib/package.js @@ -576,7 +576,7 @@ exports.processPackage = function(pkg, dir, pjson, postload) { var endpoint = ep.load(pjson.registry != 'jspm' && pjson.registry || pkg.endpoint); var deps; var buildErrors = []; - var curDeps; + var curDeps = []; return Promise.resolve() @@ -599,7 +599,7 @@ exports.processPackage = function(pkg, dir, pjson, postload) { buildErrors = buildErrors.concat(_buildErrors); // if we gained a new dependency, download it - if (pjson.dependencies && Object.keys(pjson.dependencies).length > (curDeps.length || 0)) { + if (pjson.dependencies && Object.keys(pjson.dependencies).length > curDeps.length) { var newDepMap = processDeps(pjson.dependencies, pjson.registry); // remove dependencies already downloaded Object.keys(newDepMap).forEach(function(dep) {