GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — stream: cleanup pipeline destroyer by ronag · Pull Request #32690 · nodejs/node Conversation
Member
Slightly cleans up the destroyer logic. Make readable and writable use similar logic. i.e. if (!err && reading && !writing && stream.writable) { return callback(); } if (!err && !reading && writing && stream.readable) { return callback(); } Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Slightly cleans up the destroyer logic.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
rickyes
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe merge writable and readable.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure I follow?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/30677/ ✅ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| if (err || !final || !stream.readable) { | ||
| destroyImpl.destroyer(stream, err); | ||
| if (!err && !reading && writing && stream.readable) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
if (!err) { if (reading) { if (!writing && stream.writable) { return callback(); } } else if (writing && stream.readable) { return callback(); } }
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I suppose this is a nit?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This might be redundant given #32966 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
closed in favor of #32968 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.