diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2019-03-04 18:19:53 -0500 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2019-03-04 18:19:53 -0500 |
commit | a8ecb4270d7a5590c9509ff47c2670432122bf07 (patch) | |
tree | d01c8dcd091f61abf546a7d228e8ec92f812e916 /src/mongo/dbtests/jstests.cpp | |
parent | 72efa53c3f1ff6e34a4e46832b8950fc9ee33bdb (diff) | |
download | mongo-a8ecb4270d7a5590c9509ff47c2670432122bf07.tar.gz |
SERVER-39400 fix lint
Diffstat (limited to 'src/mongo/dbtests/jstests.cpp')
-rw-r--r-- | src/mongo/dbtests/jstests.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mongo/dbtests/jstests.cpp b/src/mongo/dbtests/jstests.cpp index 3d046ee36b5..7f06eea59f1 100644 --- a/src/mongo/dbtests/jstests.cpp +++ b/src/mongo/dbtests/jstests.cpp @@ -1517,16 +1517,15 @@ public: * evaluated the function within the then() will be executed, * setting x to 28. */ scope->invoke( - "let f = async function() { return 28; };" - "f().then(function(y){ x = y; });" - "return x;" - , 0, 0); + "let f = async function() { return 28; };" + "f().then(function(y){ x = y; });" + "return x;", + 0, + 0); ASSERT(0 == scope->getNumber("__returnValue")); /* When we return x the second time the value has been updated * by the async function */ - scope->invoke( - "return x;" - , 0, 0); + scope->invoke("return x;", 0, 0); ASSERT(28 == scope->getNumber("__returnValue")); } }; |