Skip to content

Commit 07f04b2

Browse files
committed
net: linted code
1 parent 505a1fc commit 07f04b2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/api/net.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ behavior.
871871
added: v0.1.90
872872
changes:
873873
- version: REPLACEME
874-
pr-url: REPLACEME
874+
pr-url: https://github.com/nodejs/node/pull/46790
875875
description: The default value for the autoSelectFamily option is now true.
876876
The `--enable-network-family-autoselection` has been renamed
877877
to `--network-family-autoselection`. The old name is now an
@@ -943,11 +943,11 @@ For TCP connections, available `options` are:
943943
Ignored if the `family` option is not `0` or if `localAddress` is set.
944944
Connection errors are not emitted if at least one connection succeeds.
945945
If all connections attempts fails a single `AggregateError` with all failed attempts is emitted.
946-
**Default:** \[`net.getDefaultAutoSelectFamily()`]\[]
946+
**Default:** [`net.getDefaultAutoSelectFamily()`][]
947947
* `autoSelectFamilyAttemptTimeout` {number}: The amount of time in milliseconds to wait
948948
for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option.
949949
If set to a positive integer less than `10`, then the value `10` will be used instead.
950-
**Default:** \[`net.getDefaultAutoSelectFamilyAttemptTimeout()`]\[]
950+
**Default:** [`net.getDefaultAutoSelectFamilyAttemptTimeout()`][]
951951

952952
For [IPC][] connections, available `options` are:
953953

@@ -1756,6 +1756,8 @@ net.isIPv6('fhqwhgads'); // returns false
17561756
[`net.createConnection(path)`]: #netcreateconnectionpath-connectlistener
17571757
[`net.createConnection(port, host)`]: #netcreateconnectionport-host-connectlistener
17581758
[`net.createServer()`]: #netcreateserveroptions-connectionlistener
1759+
[`net.getDefaultAutoSelectFamily()`]: #netgetdefaultautoselectfamily
1760+
[`net.getDefaultAutoSelectFamilyAttemptTimeout()`]: #netgetdefaultautoselectfamilyattempttimeout
17591761
[`new net.Socket(options)`]: #new-netsocketoptions
17601762
[`readable.setEncoding()`]: stream.md#readablesetencodingencoding
17611763
[`server.close()`]: #serverclosecallback

src/node_options.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
363363
&EnvironmentOptions::network_family_autoselection,
364364
kAllowedInEnvvar,
365365
true);
366-
AddAlias("--enable-network-family-autoselection", "--network-family-autoselection");
366+
AddAlias("--enable-network-family-autoselection",
367+
"--network-family-autoselection");
367368
AddOption("--enable-source-maps",
368369
"Source Map V3 support for stack traces",
369370
&EnvironmentOptions::enable_source_maps,

0 commit comments

Comments
 (0)