diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2016-12-10 11:08:56 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-12-22 20:27:59 -0800 |
commit | 966e5cfb8169a35bf3a99d0272256b0976681a70 (patch) | |
tree | d0f1fc3ca04c19df760ec4b8a5fc0c5510b85221 /test/parallel/test-https-strict.js | |
parent | 9fd79c9f5ba57f73783478e26555591b0c30f8c8 (diff) | |
download | android-node-v8-966e5cfb8169a35bf3a99d0272256b0976681a70.tar.gz android-node-v8-966e5cfb8169a35bf3a99d0272256b0976681a70.tar.bz2 android-node-v8-966e5cfb8169a35bf3a99d0272256b0976681a70.zip |
tools: enforce linebreak after ternary operators
This is to be consistent with the other operators and helps
understanding the context when the code is grepped.
PR-URL: https://github.com/nodejs/node/pull/10213
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-https-strict.js')
-rw-r--r-- | test/parallel/test-https-strict.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index e62f8ad015..871d9ef94e 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -127,10 +127,10 @@ function makeReq(path, port, error, host, ca) { } var req = https.get(options); expectResponseCount++; - var server = port === server1.address().port ? server1 - : port === server2.address().port ? server2 - : port === server3.address().port ? server3 - : null; + var server = port === server1.address().port ? server1 : + port === server2.address().port ? server2 : + port === server3.address().port ? server3 : + null; if (!server) throw new Error('invalid port: ' + port); server.expectCount++; |