diff --git a/lib/storage.js b/lib/storage.js index 1a835304..7b0a6b1e 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -363,7 +363,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()