summaryrefslogtreecommitdiff
path: root/src/mongo/shell/explainable.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /src/mongo/shell/explainable.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/shell/explainable.js')
-rw-r--r--src/mongo/shell/explainable.js19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/mongo/shell/explainable.js b/src/mongo/shell/explainable.js
index 4f54694acd3..2fe8ce0de70 100644
--- a/src/mongo/shell/explainable.js
+++ b/src/mongo/shell/explainable.js
@@ -126,23 +126,15 @@ var Explainable = (function() {
this.findAndModify = function(params) {
var famCmd = Object.extend({"findAndModify": this._collection.getName()}, params);
- var explainCmd = {
- "explain": famCmd,
- "verbosity": this._verbosity
- };
+ var explainCmd = {"explain": famCmd, "verbosity": this._verbosity};
var explainResult = this._collection.runReadCommand(explainCmd);
return throwOrReturn(explainResult);
};
this.group = function(params) {
params.ns = this._collection.getName();
- var grpCmd = {
- "group": this._collection.getDB()._groupFixParms(params)
- };
- var explainCmd = {
- "explain": grpCmd,
- "verbosity": this._verbosity
- };
+ var grpCmd = {"group": this._collection.getDB()._groupFixParms(params)};
+ var explainCmd = {"explain": grpCmd, "verbosity": this._verbosity};
var explainResult = this._collection.runReadCommand(explainCmd);
return throwOrReturn(explainResult);
};
@@ -158,10 +150,7 @@ var Explainable = (function() {
distinctCmd.collation = options.collation;
}
- var explainCmd = {
- explain: distinctCmd,
- verbosity: this._verbosity
- };
+ var explainCmd = {explain: distinctCmd, verbosity: this._verbosity};
var explainResult = this._collection.runReadCommand(explainCmd);
return throwOrReturn(explainResult);
};