(digest, callback)
| 5068 | } |
| 5069 | |
| 5070 | function verifyAttachment(digest, callback) { |
| 5071 | |
| 5072 | var req = attachStore.get(digest); |
| 5073 | req.onsuccess = function (e) { |
| 5074 | if (!e.target.result) { |
| 5075 | var err = createError(MISSING_STUB, |
| 5076 | 'unknown stub attachment with digest ' + |
| 5077 | digest); |
| 5078 | err.status = 412; |
| 5079 | callback(err); |
| 5080 | } else { |
| 5081 | callback(); |
| 5082 | } |
| 5083 | }; |
| 5084 | } |
| 5085 | |
| 5086 | function verifyAttachments(finish) { |
| 5087 |
no test coverage detected
searching dependent graphs…