Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid
ERR_INVALID_ARG_TYPE
error on Node.js >= 9 (#23)
From nodejs/node@e5c290b included in Node.js >= 9, fs.WriteStream#close() requires a callback function and throws an error when no arguments are provided. This patch makes pump compatible with Node.js >= 9 by passing a noop function to fs.WriteStream#close().
- Loading branch information