summaryrefslogtreecommitdiff
path: root/jstests/core/existsa.js
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-02-04 12:29:01 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-02-09 13:41:02 -0500
commit3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch)
tree788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/existsa.js
parent985e2a0be95709ac064c57f0a9bb385a55937285 (diff)
downloadmongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts: jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/existsa.js')
-rw-r--r--jstests/core/existsa.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/existsa.js b/jstests/core/existsa.js
index d1fecc2461e..0d2472ca328 100644
--- a/jstests/core/existsa.js
+++ b/jstests/core/existsa.js
@@ -37,7 +37,7 @@ function assertExists( query, expectedExists ) {
assert.eq( expectedExists, t.count( query ) );
// An $exists:true predicate generates no index filters. Add another predicate on the index key
// to trigger use of the index.
- andClause = {}
+ andClause = {};
andClause[ indexKeyField ] = { $ne:null };
Object.extend( query, { $and:[ andClause ] } );
assert.eq( expectedExists, t.count( query ) );
@@ -49,7 +49,7 @@ function assertExistsUnindexed( query, expectedExists ) {
expectedExists = expectedExists || 2;
assert.eq( expectedExists, t.count( query ) );
// Even with another predicate on the index key, the sparse index is disallowed.
- andClause = {}
+ andClause = {};
andClause[ indexKeyField ] = { $ne:null };
Object.extend( query, { $and:[ andClause ] } );
assert.eq( expectedExists, t.count( query ) );