Skip to content

Commit

Permalink
Filter falsey _npmUser values.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Gozde authored and rlidwka committed Aug 7, 2014
1 parent 7981d55 commit 060dcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 060dcb4

Please sign in to comment.