Skip to content

Commit

Permalink
fix: return executeOperation for explain, if promise is desired
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored and daprahamian committed Aug 13, 2019
1 parent 771af5b commit b4a7ad7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,7 @@ Cursor.prototype.transformStream = function(options) {
Cursor.prototype.explain = function(callback) {
if (this.operation) {
this.operation.options.explain = true;
executeOperation(this.s.topology, this.operation, callback);
return;
return executeOperation(this.s.topology, this.operation, callback);
}

this.s.cmd.explain = true;
Expand Down

0 comments on commit b4a7ad7

Please sign in to comment.