Skip to content

Commit

Permalink
refactor: Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jan 27, 2016
1 parent b3dfb64 commit f298764
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,19 @@ Blobs.prototype.createWriteStream = function (opts, cb) {
Transform.call(this, options)
this._bufs = []
this._evilIsFlushing = false
this._evilPending = 0
this._evilWantFinish = false
this._evilFlushed = false
}

util.inherits(FlushableStream, Transform)

FlushableStream.prototype._transform = function (chunk, encoding, done) {
this._evilPending++
// coerce number arguments to strings, since Buffer(number) does
// uninitialized memory allocation
if (typeof buf === 'number') chunk = chunk.toString()

this._bufs.push(Buffer.isBuffer(chunk) ? chunk : new Buffer(chunk))
this.push(chunk)

this._evilPending--
if (done) done()
}

Expand Down

0 comments on commit f298764

Please sign in to comment.