Skip to content

Commit

Permalink
Fix references to drained
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Jun 3, 2024
1 parent 4d1c43c commit 9fdb5bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ exports.Writable = class Writable extends stream.Writable {

const result = super.write(chunk)

if (cb) Writable.drained(this).then(cb, cb)
if (cb) stream.Writable.drained(this).then(cb, cb)

return result
}
Expand Down Expand Up @@ -146,7 +146,7 @@ exports.Duplex = class Duplex extends stream.Duplex {

const result = super.write(chunk)

if (cb) Writable.drained(this).then(cb, cb)
if (cb) stream.Writable.drained(this).then(cb, cb)

return result
}
Expand Down Expand Up @@ -209,7 +209,7 @@ exports.Transform = class Transform extends stream.Transform {

const result = super.write(chunk)

if (cb) Writable.drained(this).then(cb, cb)
if (cb) stream.Writable.drained(this).then(cb, cb)

return result
}
Expand Down

0 comments on commit 9fdb5bb

Please sign in to comment.