Skip to content

Commit b4a7ad7

Browse files
mbroadstdaprahamian
authored andcommitted
fix: return executeOperation for explain, if promise is desired
1 parent 771af5b commit b4a7ad7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/cursor.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,7 @@ Cursor.prototype.transformStream = function(options) {
10201020
Cursor.prototype.explain = function(callback) {
10211021
if (this.operation) {
10221022
this.operation.options.explain = true;
1023-
executeOperation(this.s.topology, this.operation, callback);
1024-
return;
1023+
return executeOperation(this.s.topology, this.operation, callback);
10251024
}
10261025

10271026
this.s.cmd.explain = true;

0 commit comments

Comments
 (0)