(value)
| 8422 | } |
| 8423 | |
| 8424 | function defaultsTo(value) { |
| 8425 | return function (reason) { |
| 8426 | /* istanbul ignore else */ |
| 8427 | if (reason.status === 404) { |
| 8428 | return value; |
| 8429 | } else { |
| 8430 | throw reason; |
| 8431 | } |
| 8432 | }; |
| 8433 | } |
| 8434 | |
| 8435 | // returns a promise for a list of docs to update, based on the input docId. |
| 8436 | // the order doesn't matter, because post-3.2.0, bulkDocs |
no outgoing calls
no test coverage detected
searching dependent graphs…