node/lib/internal/fs
Morgan Roderick 4a34ece28f
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-15 05:25:53 +01:00
..
cp fs: support copy of relative links with cp and cpSync 2022-02-15 12:14:04 +00:00
dir.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
promises.js fs: remove unnecessary ?? operator 2022-05-15 05:25:53 +01:00
read_file_context.js fs: propagate abortsignal reason in new AbortSignal constructors 2021-12-02 12:14:13 -08:00
rimraf.js fs: fix rmsync error swallowing 2021-05-25 07:18:05 -07:00
streams.js stream: add errored and closed props 2021-11-13 11:19:32 +02:00
sync_write_stream.js fs: refactor to use more primordials 2020-11-27 18:40:51 +01:00
utils.js doc: consolidate use of multiple-byte units 2022-04-20 00:46:37 +02:00
watchers.js fs: propagate abortsignal reason in new AbortSignal constructors 2021-12-02 12:14:13 -08:00