diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2019-08-23 00:45:49 +0300 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2019-08-23 09:03:16 +0300 |
commit | 2fc87685d90ea9a8ad21d2f4515eaf329d71b3f1 (patch) | |
tree | 42d5424cbb293a8d1ca3ec130acd445183500e27 /src/module_wrap.cc | |
parent | 47ff44e08e3a7e7a734fcd87c0043e47589aa545 (diff) |
module: avoid passing unnecessary loop reference
It's a sync request, which doesn't require the loop parameter to be set.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index bae5e202dcd..e27c6444428 100644 --- a/src/module_wrap.cc +++ b/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, |