node/lib
Morgan Roderick becca06f9b
fs: remove unnecessary ?? operator
This was introduced in 57678e5581

With the `if` conditional around this statement, `options` will always
be evaluated as truthy. That means that the nullish coalescing operator
will always evaluate to the left side, make it unnecessary.

PR-URL: https://github.com/nodejs/node/pull/43073
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
2022-05-16 11:12:18 +01:00
..
assert
dns
fs
internal fs: remove unnecessary ?? operator 2022-05-16 11:12:18 +01:00
path
readline readline: propagate signal.reason in awaitable question 2021-12-02 12:13:02 -08:00
stream stream: add reduce 2022-01-30 14:07:32 +00:00
timers tools: add timers functions to the list of restricted globals 2022-02-18 11:37:36 +00:00
util
.eslintrc.yaml stream: expose web streams globals, remove runtime experimental warning 2022-04-04 09:36:54 +01:00
_http_agent.js http: make TCP noDelay enabled by default 2022-03-09 14:37:49 +00:00
_http_client.js http: refactor headersTimeout and requestTimeout logic 2022-04-13 15:47:59 +01:00
_http_common.js http: refactor headersTimeout and requestTimeout logic 2022-04-13 15:47:59 +01:00
_http_incoming.js lib: fix typos in lib code comments 2021-11-12 23:26:20 +01:00
_http_outgoing.js http: don't write empty data on req/res end() 2021-12-10 19:44:24 +00:00
_http_server.js http: added connection closing methods 2022-05-10 09:13:17 -03:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js
_stream_transform.js
_stream_wrap.js
_stream_writable.js
_tls_common.js tls: move tls.parseCertString to end-of-life 2022-01-15 17:00:25 +01:00
_tls_wrap.js tls: avoid throw in onerror for bad TLSSocket obj 2022-02-14 08:08:37 +00:00
assert.js doc: consolidate use of multiple-byte units 2022-04-28 06:56:13 +02:00
async_hooks.js lib: fix AsyncResource.bind not using 'this' from the caller by default 2022-03-08 22:00:55 +00:00
buffer.js buffer: fix atob input validation 2022-04-12 16:34:59 +02:00
child_process.js child_process: add env contents types in JSDoc 2022-03-30 15:03:48 +01:00
cluster.js
console.js
constants.js
crypto.js src: include crypto in the bootstrap snapshot 2022-03-11 17:15:13 +00:00
dgram.js src: properly report exceptions from AddressToJS() 2022-03-26 15:39:59 +00:00
diagnostics_channel.js lib: add unsubscribe method to non-active DC channels 2021-10-19 14:46:14 +00:00
dns.js dns: remove dns.lookup and dnsPromises.lookup options type coercion 2022-04-12 05:50:11 +02:00
domain.js domain: pass opts to EventEmitter.init 2022-01-19 11:26:38 +00:00
events.js lib: add internal genericNodeError() function 2022-02-09 01:56:15 +00:00
fs.js fs: add read(buffer[, options]) versions 2022-05-10 09:13:16 -03:00
http.js lib,test,tools: use consistent JSDoc types 2021-11-29 06:48:00 +00:00
http2.js
https.js http: added connection closing methods 2022-05-10 09:13:17 -03:00
inspector.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
module.js
net.js net: make server.address() return an integer for family 2022-04-12 05:50:09 +02:00
os.js typings: fix os.cpus invalid return type 2022-05-16 11:12:11 +01:00
path.js lib: fix typos in lib code comments 2021-11-12 23:26:20 +01:00
perf_hooks.js perf_hooks: add PerformanceResourceTiming 2022-05-16 11:12:16 +01:00
process.js
punycode.js
querystring.js lib: include return types in JSDoc 2021-12-12 03:51:00 +00:00
readline.js readline: propagate signal.reason in awaitable question 2021-12-02 12:13:02 -08:00
repl.js module,repl: support 'node:'-only core modules 2022-03-21 22:21:09 +00:00
stream.js stream: port more test262 tests 2022-02-23 21:06:00 +00:00
string_decoder.js string_decoder: fix crash when calling __proto__.write() 2022-03-08 16:36:11 +00:00
sys.js
test.js test: add initial test module 2022-03-21 22:21:09 +00:00
timers.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
tls.js tls: move tls.parseCertString to end-of-life 2022-01-15 17:00:25 +01:00
trace_events.js
tty.js
url.js url: throw on NULL in IPv6 hostname 2022-03-14 21:12:44 +00:00
util.js util: expose stripVTControlCharacters() 2021-10-01 22:56:58 -04:00
v8.js v8: export cpu_profiler_metadata_size in getHeapCodeStatistics 2022-05-02 14:39:32 +02:00
vm.js vm: add support for import assertions in dynamic imports 2021-10-09 08:44:53 +00:00
wasi.js
worker_threads.js
zlib.js lib: add internal genericNodeError() function 2022-02-09 01:56:15 +00:00