Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
support files with length = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Apr 20, 2014
1 parent 5d9d93f commit 3f7395b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function (torrent) {

if (torrent.info.files) {
torrent.info.files.forEach(function (file) {
ensure(file.length, 'info.files[0].length')
ensure(typeof file.length === 'number', 'info.files[0].length')
ensure(file.path, 'info.files[0].path')
})
} else {
Expand Down

0 comments on commit 3f7395b

Please sign in to comment.