Skip to content

Commit

Permalink
stream: removed outdated TODO
Browse files Browse the repository at this point in the history
Was resolved in e559842.

PR-URL: #31701
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
ronag authored and addaleax committed Feb 13, 2020
1 parent bc55b57 commit b9a7625
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/internal/streams/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ function destroy(err, cb) {
const r = this._readableState;
const w = this._writableState;

// TODO(ronag): readable & writable = false?

if (err) {
if (w) {
w.errored = true;
Expand Down Expand Up @@ -140,8 +138,6 @@ function errorOrDestroy(stream, err, sync) {
const r = stream._readableState;
const w = stream._writableState;

// TODO(ronag): readable & writable = false?

if ((r && r.autoDestroy) || (w && w.autoDestroy))
stream.destroy(err);
else if (err) {
Expand Down

0 comments on commit b9a7625

Please sign in to comment.