Skip to content

Commit

Permalink
fix: write after end (#7)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw authored and hugomrdias committed Sep 2, 2019
1 parent a864dda commit b30d7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streams/stream-from-filereader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const streamFromFileReader = (file, options) => {
this.fileReader.onloadend = (event) => {
const data = event.target.result
if (data.byteLength === 0) {
this.push(null)
return this.push(null)
}
this.push(new Uint8Array(data))
}
Expand Down

0 comments on commit b30d7a3

Please sign in to comment.