lint
This commit is contained in:
parent
50be39792a
commit
22c7d134e2
@ -673,11 +673,12 @@ Socket.prototype.__defineGetter__('bytesWritten', function() {
|
|||||||
bytes += Buffer.byteLength(el.chunk, el.encoding);
|
bytes += Buffer.byteLength(el.chunk, el.encoding);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (data)
|
if (data) {
|
||||||
if (Buffer.isBuffer(data))
|
if (Buffer.isBuffer(data))
|
||||||
bytes += data.length;
|
bytes += data.length;
|
||||||
else
|
else
|
||||||
bytes += Buffer.byteLength(data, encoding);
|
bytes += Buffer.byteLength(data, encoding);
|
||||||
|
}
|
||||||
|
|
||||||
return bytes;
|
return bytes;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user