Skip to content

stream: delete redundant code

In Writable.prototype.end(), state.ending is true after calling endWritable() and it doesn't reset to false.

In Writable.prototype.uncork(), state.finished must be false if state.bufferedRequest is true.

In onCorkedFinish(), state.corkedRequestsFree of a writable stream is never null.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

Merge request reports

Loading