index.js
function onerror(cb) {
  return function (err) {
    if (err) {
      shas = {}
      arguments[0] = err instanceof Error ? err : new Error(err.toString())
    }
    cb.apply(null, arguments)
  }
}
function onerror(cb) {
  return function (err) {
    if (err) {
      shas = {}
      arguments[0] = err instanceof Error ? err : new Error(err.toString())
    }
    cb.apply(null, arguments)
  }
}
function onerror ( cb ) { return function ( err ) { if ( err ) { shas = { } arguments [ 0 ] = err instanceof Error ? err : new Error ( err . toString ( ) ) } cb . apply ( null , arguments ) } }
If an error occurs, we must be prudent and assume data was lost. We clean the shas cache.
If an error occurs we must be prudent and assume data was lost . We clean the shas cache .