summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-pause.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-03-02 02:44:18 +0000
committerAnatoli Papirovski <apapirovski@mac.com>2018-03-04 15:33:18 +0100
commitf2d93795bfe61a3260bf743d2247b56b83fc6f70 (patch)
tree2edc3c4ced9bc6309e3a93c3af474adf16933187 /test/parallel/test-tls-pause.js
parent7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1 (diff)
downloadandroid-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.tar.gz
android-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.tar.bz2
android-node-v8-f2d93795bfe61a3260bf743d2247b56b83fc6f70.zip
lib,test: remove yoda statements
PR-URL: https://github.com/nodejs/node/pull/18746 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-pause.js')
-rw-r--r--test/parallel/test-tls-pause.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-tls-pause.js b/test/parallel/test-tls-pause.js
index a6130cd433..e246acff80 100644
--- a/test/parallel/test-tls-pause.js
+++ b/test/parallel/test-tls-pause.js
@@ -60,7 +60,7 @@ server.listen(0, common.mustCall(() => {
console.error('sending');
const ret = client.write(Buffer.allocUnsafe(bufSize));
console.error(`write => ${ret}`);
- if (false !== ret) {
+ if (ret !== false) {
console.error('write again');
sent += bufSize;
assert.ok(sent < 100 * 1024 * 1024); // max 100MB