Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
txn.get(stores.attachmentStore, digest, function (levelErr) {
if (levelErr) {
var err = pouchdbErrors.createError(pouchdbErrors.MISSING_STUB,
'unknown stub attachment with digest ' +
digest);
callback(err);
} else {
callback();
}
});
}
txn.get(stores.attachmentStore, digest, function (levelErr) {
if (levelErr) {
var err = pouchdbErrors.createError(pouchdbErrors.MISSING_STUB,
'unknown stub attachment with digest ' +
digest);
callback(err);
} else {
callback();
}
});
}