Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only add the output stream write cb if there's a cb

  • Loading branch information...
commit ea8f567428fa49d32775ad2949ccb1887ced9c9e 1 parent 7c4c8d4
@isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/utils/output.js
View
2  lib/utils/output.js
@@ -101,7 +101,7 @@ function write (args, stream, lf, cb) {
var flushed = stream.write(msg)
if (flushed && cb) {
process.nextTick(cb)
- } else {
+ } else if (cb) {
stream.once("drain", cb)
}
return flushed
Please sign in to comment.
Something went wrong with that request. Please try again.