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_sort1.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_sort1.js')
-rw-r--r-- | jstests/core/geo_sort1.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/geo_sort1.js b/jstests/core/geo_sort1.js index 67de80e65c7..cd07345b587 100644 --- a/jstests/core/geo_sort1.js +++ b/jstests/core/geo_sort1.js @@ -1,5 +1,5 @@ -t = db.geo_sort1 +t = db.geo_sort1; t.drop(); for ( x=0; x<10; x++ ){ @@ -8,10 +8,10 @@ for ( x=0; x<10; x++ ){ } } -t.ensureIndex( { loc : "2d" , foo : 1 } ) +t.ensureIndex( { loc : "2d" , foo : 1 } ); -q = t.find( { loc : { $near : [ 5 , 5 ] } , foo : { $gt : 20 } } ) -m = function(z){ return z.foo; } +q = t.find( { loc : { $near : [ 5 , 5 ] } , foo : { $gt : 20 } } ); +m = function(z){ return z.foo; }; a = q.clone().map( m ); b = q.clone().sort( { foo : 1 } ).map( m ); |