Skip to content
Permalink
Browse files

module: avoid passing unnecessary loop reference

It's a sync request, which doesn't require the loop parameter to be set.

PR-URL: #29275
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
saghul authored and BridgeAR committed Aug 22, 2019
1 parent 65de900 commit eb2d96fecf3e8a74d5a0c81ce1e5f3eed4285b02
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/module_wrap.cc
@@ -462,7 +462,7 @@ std::string ReadFile(uv_file file) {
uv_buf_t buf = uv_buf_init(buffer_memory, sizeof(buffer_memory));

do {
const int r = uv_fs_read(uv_default_loop(),
const int r = uv_fs_read(nullptr,
&req,
file,
&buf,

0 comments on commit eb2d96f

Please sign in to comment.
You can’t perform that action at this time.