summaryrefslogtreecommitdiff
path: root/src/mongo/shell/servers.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/servers.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/shell/servers.js')
-rw-r--r--src/mongo/shell/servers.js36
1 files changed, 13 insertions, 23 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index 2496b70fb91..6bfc15d945d 100644
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -382,9 +382,7 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro
// If we're a mongo object
if (opts.getDB) {
- opts = {
- restart: opts.runId
- };
+ opts = {restart: opts.runId};
}
// Initialize and create a copy of the opts
@@ -794,11 +792,10 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro
if (!Array.contains(allowedExitCodes, returnCode)) {
throw new MongoRunner.StopError(
- // clang-format off
+ // clang-format off
`MongoDB process on port ${port} exited with error code ${returnCode}`,
- // clang-format on
- returnCode
- );
+ // clang-format on
+ returnCode);
}
return returnCode;
@@ -884,10 +881,9 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro
}
}
if (!hasAuthMechs) {
- argArray.push(...[
- '--setParameter',
- "authenticationMechanisms=" + jsTest.options().authMechanism
- ]);
+ argArray.push(
+ ...['--setParameter',
+ "authenticationMechanisms=" + jsTest.options().authMechanism]);
}
}
if (jsTest.options().auth) {
@@ -916,22 +912,16 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro
}
}
if (jsTest.options().wiredTigerEngineConfigString) {
- argArray.push(...[
- '--wiredTigerEngineConfigString',
- jsTest.options().wiredTigerEngineConfigString
- ]);
+ argArray.push(...['--wiredTigerEngineConfigString',
+ jsTest.options().wiredTigerEngineConfigString]);
}
if (jsTest.options().wiredTigerCollectionConfigString) {
- argArray.push(...[
- '--wiredTigerCollectionConfigString',
- jsTest.options().wiredTigerCollectionConfigString
- ]);
+ argArray.push(...['--wiredTigerCollectionConfigString',
+ jsTest.options().wiredTigerCollectionConfigString]);
}
if (jsTest.options().wiredTigerIndexConfigString) {
- argArray.push(...[
- '--wiredTigerIndexConfigString',
- jsTest.options().wiredTigerIndexConfigString
- ]);
+ argArray.push(...['--wiredTigerIndexConfigString',
+ jsTest.options().wiredTigerIndexConfigString]);
}
// apply setParameters for mongod
if (jsTest.options().setParameters) {