Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: files.createAddStream(): replaced too clever code with simpler…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
pgte committed Mar 24, 2017
1 parent 2fc20dc commit 6518f35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/components/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ class AddStreamDuplex extends Duplex {
_read () {
this._pullStream(null, (end, data) => {
while (this._waitingPullFlush.length) {
this._waitingPullFlush.shift()()
const cb = this._waitingPullFlush.shift()
cb()
}
if (end) {
if (end instanceof Error) {
Expand Down

0 comments on commit 6518f35

Please sign in to comment.