Skip to content

Commit

Permalink
Merge pull request #101 from sorribas/master
Browse files Browse the repository at this point in the history
Avoid getIndexes crash when called with no parameters.
  • Loading branch information
mafintosh committed Nov 7, 2013
2 parents 7c7b123 + fde3f56 commit c09b057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Collection.prototype.remove = function() {
};

Collection.prototype.getIndexes = function() {
this._apply(DRIVER_COLLECTION_PROTO.indexes, arguments);
this._apply(DRIVER_COLLECTION_PROTO.indexes, ensureCallback(arguments));
};

Collection.prototype.runCommand = function(cmd, opts, callback) {
Expand Down

0 comments on commit c09b057

Please sign in to comment.