summaryrefslogtreecommitdiff
path: root/jstests/core/existsa.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 /jstests/core/existsa.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/core/existsa.js')
-rw-r--r--jstests/core/existsa.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/core/existsa.js b/jstests/core/existsa.js
index 45adb5d3172..e9430b489a3 100644
--- a/jstests/core/existsa.js
+++ b/jstests/core/existsa.js
@@ -38,9 +38,7 @@ function assertExists(query, expectedExists) {
// An $exists:true predicate generates no index filters. Add another predicate on the index key
// to trigger use of the index.
andClause = {};
- andClause[indexKeyField] = {
- $ne: null
- };
+ andClause[indexKeyField] = {$ne: null};
Object.extend(query, {$and: [andClause]});
assert.eq(expectedExists, t.count(query));
assert.eq(expectedExists, hintedCount(query));
@@ -52,9 +50,7 @@ function assertExistsUnindexed(query, expectedExists) {
assert.eq(expectedExists, t.count(query));
// Even with another predicate on the index key, the sparse index is disallowed.
andClause = {};
- andClause[indexKeyField] = {
- $ne: null
- };
+ andClause[indexKeyField] = {$ne: null};
Object.extend(query, {$and: [andClause]});
assert.eq(expectedExists, t.count(query));
assert.eq(expectedExists, hintedCount(query));