Skip to content

Commit

Permalink
fix failling test
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 19, 2021
1 parent 9ff0b1c commit ea85e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function close(stream, err, cb) {

function importFd(stream, options) {
stream.fd = null;
if (options.fd) {
if (options.fd != null) {
if (typeof options.fd === 'number') {
// When fd is a raw descriptor, we must keep our fingers crossed
// that the descriptor won't get closed, or worse, replaced with
Expand Down

0 comments on commit ea85e55

Please sign in to comment.