Skip to content

Commit

Permalink
Update lib/internal/streams/writable.js
Browse files Browse the repository at this point in the history
Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
  • Loading branch information
ronag and anonrig authored Oct 16, 2023
1 parent 3cc640c commit afbc8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function _write(stream, chunk, encoding, cb) {
else if (encoding !== 'buffer' && !Buffer.isEncoding(encoding))
throw new ERR_UNKNOWN_ENCODING(encoding);

if (cb = null || typeof cb !== 'function')
if (cb == null || typeof cb !== 'function')
cb = nop;

if (chunk === null) {
Expand Down

0 comments on commit afbc8dc

Please sign in to comment.