From 58046a2ec7946f85555a093f5ee879447d3cbcec Mon Sep 17 00:00:00 2001 From: John Gozde Date: Fri, 1 Aug 2014 14:08:44 -0600 Subject: [PATCH] Filter falsey _npmUser values. --- lib/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage.js b/lib/storage.js index a716a1384..7a137ef91 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -368,7 +368,7 @@ Storage.prototype.search = function(startkey, options, callback) { 'dist-tags' : { latest: latest }, - maintainers : data.versions[latest].maintainers || [data.versions[latest]._npmUser], + maintainers : data.versions[latest].maintainers || [data.versions[latest]._npmUser].filter(Boolean), readmeFilename: data.versions[latest].readmeFilename || '', time : { modified: new Date(item.time).toISOString()