| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Slightly cleans up the destroyer logic.
Sorry, something went wrong.
| destroyImpl.destroyer(stream, err); | ||
| if (!err && !reading && writing && stream.readable) { | ||
| return callback(); | ||
| } |
There was a problem hiding this comment.
Maybe merge writable and readable.
Sorry, something went wrong.
There was a problem hiding this comment.
not sure I follow?
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
|
|
||
| if (err || !final || !stream.readable) { | ||
| destroyImpl.destroyer(stream, err); | ||
| if (!err && !reading && writing && stream.readable) { |
There was a problem hiding this comment.
if (!err) {
if (reading) {
if (!writing && stream.writable) {
return callback();
}
} else if (writing && stream.readable) {
return callback();
}
}
Sorry, something went wrong.
There was a problem hiding this comment.
I suppose this is a nit?
Sorry, something went wrong.
|
This might be redundant given #32966 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Slightly cleans up the destroyer logic. Make readable and writable use similar logic.
i.e.
Checklist