summaryrefslogtreecommitdiff
path: root/jstests/core/currentop_predicate.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/currentop_predicate.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/core/currentop_predicate.js')
-rw-r--r--jstests/core/currentop_predicate.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/jstests/core/currentop_predicate.js b/jstests/core/currentop_predicate.js
index 98df3c9756e..73b8a006588 100644
--- a/jstests/core/currentop_predicate.js
+++ b/jstests/core/currentop_predicate.js
@@ -1,22 +1,20 @@
// Tests the use of a match predicate with the currentOp command.
(function() {
// Test a $where predicate that matches the currentOp operation we are running.
- var res = db.adminCommand("currentOp",
- {
- $where: function() {
- return true;
- }
- });
+ var res = db.adminCommand("currentOp", {
+ $where: function() {
+ return true;
+ }
+ });
assert.commandWorked(res);
assert.gt(res.inprog.length, 0, tojson(res));
// Test a $where predicate that matches no operations.
- res = db.adminCommand("currentOp",
- {
- $where: function() {
- return false;
- }
- });
+ res = db.adminCommand("currentOp", {
+ $where: function() {
+ return false;
+ }
+ });
assert.commandWorked(res);
assert.eq(res.inprog.length, 0, tojson(res));
})();