prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function yankError(callback) {
  return function (err, results) {
    if (err || (results[0] && results[0].error)) {
      callback(err || results[0]);
    } else {
      callback(null, results.length ? results[0]  : results);
    }
  };
}
function yankError(callback) {
  return function (err, results) {
    if (err || (results[0] && results[0].error)) {
      callback(err || results[0]);
    } else {
      callback(null, results.length ? results[0]  : results);
    }
  };
}
function yankError ( callback ) { return function ( err , results ) { if ( err || ( results [ 0 ] && results [ 0 ] . error ) ) { callback ( err || results [ 0 ] ) ; } else { callback ( null , results . length ? results [ 0 ] : results ) ; } } ; }
Wrapper for functions that call the bulkdocs api with a single doc, if the first result is an error, return an error
Wrapper for functions that call the bulkdocs api with a single doc if the first result is an error return an error