Skip to content

Commit

Permalink
fix: return super.write() return value
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 18, 2019
1 parent d834c8d commit 55b055d
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 @@ -49,7 +49,7 @@ class IntegrityStream extends MiniPass {
write (data) {
this.size += data.length
this.hashes.forEach(h => h.update(data))
super.write(data)
return super.write(data)
}

onEnd () {
Expand Down

0 comments on commit 55b055d

Please sign in to comment.