Skip to content

Commit 31c7cda

Browse files
committed
Remove chained rejection handlers
1 parent 887c6f7 commit 31c7cda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ ShareDbMongo.prototype.close = function(callback) {
207207
self._mongoClient.close()
208208
.then(function() {
209209
return self._mongoPollClient && self._mongoPollClient.close();
210-
}, callback)
210+
})
211211
.then(function() {
212212
callback(null);
213213
}, callback);
@@ -416,7 +416,7 @@ ShareDbMongo.prototype.getOpCollection = function(collectionName, callback) {
416416
collection.createIndex({d: 1, v: 1}, {background: true})
417417
.then(function() {
418418
return collection.createIndex({src: 1, seq: 1, v: 1}, {background: true});
419-
}, callback)
419+
})
420420
.then(function() {
421421
self.opIndexes[collectionName] = true;
422422
callback(null, collection);

0 commit comments

Comments
 (0)