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:James M Snell <jasnell@gmail.com>
parent
3decfa75
Please register or sign in to comment