Skip to content

Commit 9493b26

Browse files
ronagmeyfa
andauthored
Update writable.js
Co-authored-by: Fabian Meyer <[email protected]>
1 parent ada4899 commit 9493b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/streams/writable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function _write(stream, chunk, encoding, cb) {
453453
else if (encoding !== 'buffer' && !Buffer.isEncoding(encoding))
454454
throw new ERR_UNKNOWN_ENCODING(encoding);
455455

456-
if (cb == null || typeof cb !== 'function')
456+
if (typeof cb !== 'function')
457457
cb = nop;
458458

459459
if (chunk === null) {

0 commit comments

Comments
 (0)