Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Set content to null for directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jun 23, 2016
1 parent a025372 commit e4164f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tar-stream-to-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function (err, res, send, done) {
ex.on('entry', function (header, stream, next) {
objStream.push({
path: header.name,
content: stream
content: header.type !== 'directory' ? stream : null
})
next()
})
Expand Down

0 comments on commit e4164f1

Please sign in to comment.