Permalink
Please
sign in to comment.
Browse files
src: replace FromJust() with Check() when possible
FromJust() is often used not for its return value, but for its side-effects. In these cases, Check() exists, and is more clear as to the intent. From its comment: To be used, where the actual value of the Maybe is not needed, like Object::Set. See: https://github.com/nodejs/node/pull/26929/files#r269256335 PR-URL: #27162 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
- Loading branch information...
Showing
with
339 additions
and 340 deletions.
- +12 −12 src/api/exceptions.cc
- +1 −1 src/api/hooks.cc
- +3 −3 src/async_wrap.cc
- +79 −79 src/cares_wrap.cc
- +2 −2 src/env-inl.h
- +7 −7 src/env.cc
- +1 −1 src/fs_event_wrap.cc
- +1 −1 src/inspector_agent.cc
- +1 −1 src/inspector_js_api.cc
- +2 −2 src/js_stream.cc
- +3 −3 src/module_wrap.cc
- +1 −2 src/node.cc
- +3 −3 src/node.h
- +1 −1 src/node_binding.cc
- +2 −2 src/node_buffer.cc
- +9 −9 src/node_constants.cc
- +6 −6 src/node_contextify.cc
- +51 −51 src/node_crypto.cc
- +1 −1 src/node_errors.h
- +21 −21 src/node_file.cc
- +6 −6 src/node_http2.cc
- +7 −7 src/node_http_parser_impl.h
- +4 −4 src/node_messaging.cc
- +6 −6 src/node_native_module.cc
- +2 −2 src/node_options.cc
- +6 −6 src/node_os.cc
- +10 −10 src/node_perf.cc
- +3 −3 src/node_process_object.cc
- +3 −3 src/node_serdes.cc
- +1 −1 src/node_stat_watcher.cc
- +1 −1 src/node_symbols.cc
- +2 −2 src/node_task_queue.cc
- +3 −3 src/node_trace_events.cc
- +3 −3 src/node_util.cc
- +7 −7 src/node_v8.cc
- +7 −7 src/node_worker.cc
- +2 −2 src/node_zlib.cc
- +3 −3 src/pipe_wrap.cc
- +2 −2 src/process_wrap.cc
- +1 −1 src/signal_wrap.cc
- +12 −12 src/spawn_sync.cc
- +3 −3 src/stream_base-inl.h
- +1 −1 src/stream_base.cc
- +5 −5 src/stream_pipe.cc
- +4 −4 src/stream_wrap.cc
- +2 −2 src/string_decoder.cc
- +10 −10 src/tcp_wrap.cc
- +1 −1 src/timers.cc
- +5 −5 src/tls_wrap.cc
- +2 −2 src/tty_wrap.cc
- +3 −3 src/udp_wrap.cc
- +3 −3 src/util.h
- +2 −2 src/uv.cc
Oops, something went wrong.
0 comments on commit
060d901