Commit 8a920185 authored by Antoine du Hamel's avatar Antoine du Hamel
Browse files

fs: make `open` and `close` stream override optional when unused

When using `createReadStream` or `createWriteStream` with a specific
file descriptor or `FileHandle` instead of a path, `open` method is not
used, there is no point in forcing users to provide it.
When using `createReadStream` or `createWriteStream` with  `autoClose`
set to false, `close` method is not used, there is no point in forcing
users to provide it.

PR-URL: https://github.com/nodejs/node/pull/40013


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 3decfa75
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment