We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a864dda commit b30d7a3Copy full SHA for b30d7a3
src/streams/stream-from-filereader.js
@@ -16,7 +16,7 @@ const streamFromFileReader = (file, options) => {
16
this.fileReader.onloadend = (event) => {
17
const data = event.target.result
18
if (data.byteLength === 0) {
19
- this.push(null)
+ return this.push(null)
20
}
21
this.push(new Uint8Array(data))
22
0 commit comments