Skip to content

Commit 10d9edc

Browse files
authored
adapter: use forEach() instead of map() when result not used (#8790)
1 parent 43e6160 commit 10d9edc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/node_modules/pouchdb-core/src/adapter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class AbstractPouchDB extends EventEmitter {
403403
});
404404
}
405405

406-
ids.map(function (id) {
406+
ids.forEach(function (id) {
407407
this._getRevisionTree(id, function (err, rev_tree) {
408408
if (err && err.status === 404 && err.message === 'missing') {
409409
missing.set(id, {missing: req[id]});

0 commit comments

Comments
 (0)