Skip to content

Commit b30d7a3

Browse files
Alan Shawhugomrdias
Alan Shaw
authored andcommitted
fix: write after end (#7)
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent a864dda commit b30d7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streams/stream-from-filereader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const streamFromFileReader = (file, options) => {
1616
this.fileReader.onloadend = (event) => {
1717
const data = event.target.result
1818
if (data.byteLength === 0) {
19-
this.push(null)
19+
return this.push(null)
2020
}
2121
this.push(new Uint8Array(data))
2222
}

0 commit comments

Comments
 (0)