index.js
function destroyReadStream (stream) {
  stream.destroy()

  if (typeof stream.close === 'function') {
    // node.js core bug work-around
    stream.on('open', onOpenClose)
  }

  return stream
}
function destroyReadStream (stream) {
  stream.destroy()

  if (typeof stream.close === 'function') {
    // node.js core bug work-around
    stream.on('open', onOpenClose)
  }

  return stream
}
function destroyReadStream ( stream ) { stream . destroy ( ) if ( typeof stream . close === 'function' ) { // node.js core bug work-around stream . on ( 'open' , onOpenClose ) } return stream }
Destroy a ReadStream.

@param {object} stream
@private
Destroy a ReadStream .