mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
bee7d7e32c
commit
05332942e2
12 files changed
+42
-43
No files matched your search
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user