From 28f22271a54fc5e6af05b42b3f88c95c5407c169 Mon Sep 17 00:00:00 2001 From: Mike Grundy Date: Thu, 25 Feb 2016 14:37:12 -0500 Subject: SERVER-22850 Clean up additional javascript issues found by eslint (cherry picked from commit eada48bf3c3377878c334389f8e68bcddd25bd2a) --- jstests/concurrency/fsm_libs/fsm.js | 4 ++-- jstests/noPassthrough/js_protection.js | 2 +- src/mongo/shell/servers.js | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/jstests/concurrency/fsm_libs/fsm.js b/jstests/concurrency/fsm_libs/fsm.js index dd6cfb52752..be9473c2684 100644 --- a/jstests/concurrency/fsm_libs/fsm.js +++ b/jstests/concurrency/fsm_libs/fsm.js @@ -33,8 +33,8 @@ var fsm = (function() { shardNames.forEach(name => - connCache.shards[name] = args.cluster.shards[name].map(connStr => - new Mongo(connStr))); + (connCache.shards[name] = args.cluster.shards[name].map(connStr => + new Mongo(connStr)))); } for (var i = 0; i < args.iterations; ++i) { diff --git a/jstests/noPassthrough/js_protection.js b/jstests/noPassthrough/js_protection.js index d500a87fda7..dde571499a8 100644 --- a/jstests/noPassthrough/js_protection.js +++ b/jstests/noPassthrough/js_protection.js @@ -57,7 +57,7 @@ function assertNoStoredWhere() { * ACTUAL TEST */ -db.system.js.save( { _id : "stored_func" , value : funcToStore } ) +db.system.js.save( { _id : "stored_func" , value : funcToStore } ); t.insertOne({'_id': 0, 'myFunc': function() { return 'tesval'; } }); assertMongoClientCorrect(); diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index ce36e1b9827..51735d33243 100755 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -794,9 +794,8 @@ function appendSetParameterArgs(argArray) { } } if (!hasAuthMechs) { - argArray.push.apply(argArray, - ['--setParameter', - "authenticationMechanisms=" + jsTest.options().authMechanism]); + argArray.push(...['--setParameter', + "authenticationMechanisms=" + jsTest.options().authMechanism]); } } if (jsTest.options().auth) { -- cgit v1.2.1