mirror of https://github.com/nodejs/node.git
streams2: Remove extraneous bufferSize setting
parent
20a88feb8f
commit
854171dc6f
|
@ -32,9 +32,6 @@ util.inherits(Readable, Stream);
|
||||||
function ReadableState(options, stream) {
|
function ReadableState(options, stream) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
// cast to an int
|
|
||||||
this.bufferSize = ~~this.bufferSize;
|
|
||||||
|
|
||||||
// the argument passed to this._read(n,cb)
|
// the argument passed to this._read(n,cb)
|
||||||
this.bufferSize = options.hasOwnProperty('bufferSize') ?
|
this.bufferSize = options.hasOwnProperty('bufferSize') ?
|
||||||
options.bufferSize : 16 * 1024;
|
options.bufferSize : 16 * 1024;
|
||||||
|
|
Loading…
Reference in New Issue