(value)
| 8455 | } |
| 8456 | |
| 8457 | function defaultsTo(value) { |
| 8458 | return function (reason) { |
| 8459 | /* istanbul ignore else */ |
| 8460 | if (reason.status === 404) { |
| 8461 | return value; |
| 8462 | } else { |
| 8463 | throw reason; |
| 8464 | } |
| 8465 | }; |
| 8466 | } |
| 8467 | |
| 8468 | // returns a promise for a list of docs to update, based on the input docId. |
| 8469 | // the order doesn't matter, because post-3.2.0, bulkDocs |
no outgoing calls
no test coverage detected
searching dependent graphs…