diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-02-04 12:29:01 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-02-09 13:41:02 -0500 |
commit | 3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch) | |
tree | 788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/geo_update2.js | |
parent | 985e2a0be95709ac064c57f0a9bb385a55937285 (diff) | |
download | mongo-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/geo_update2.js')
-rw-r--r-- | jstests/core/geo_update2.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/jstests/core/geo_update2.js b/jstests/core/geo_update2.js index 6a42619ac98..f2f1b6cee4b 100644 --- a/jstests/core/geo_update2.js +++ b/jstests/core/geo_update2.js @@ -1,6 +1,6 @@ -t = db.geo_update2 -t.drop() +t = db.geo_update2; +t.drop(); for(var x = 0; x < 10; x++ ) { for(var y = 0; y < 10; y++ ) { @@ -8,32 +8,32 @@ for(var x = 0; x < 10; x++ ) { } } -t.ensureIndex( { loc : "2d" } ) +t.ensureIndex( { loc : "2d" } ); function p(){ print( "--------------" ); for ( var y=0; y<10; y++ ){ - var c = t.find( { y : y } ).sort( { x : 1 } ) + var c = t.find( { y : y } ).sort( { x : 1 } ); var s = ""; while ( c.hasNext() ) s += c.next().z + " "; - print( s ) + print( s ); } print( "--------------" ); } -p() +p(); assert.writeOK(t.update({"loc" : {"$within" : {"$center" : [[5,5], 2]}}}, {'$inc' : { 'z' : 1}}, false, true)); -p() +p(); assert.writeOK(t.update({}, {'$inc' : { 'z' : 1}}, false, true)); -p() +p(); assert.writeOK(t.update({"loc" : {"$within" : {"$center" : [[5,5], 2]}}}, {'$inc' : { 'z' : 1}}, false, true)); -p() +p(); |