summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2019-08-22 23:45:49 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2019-08-23 08:03:16 +0200
commit2fc87685d90ea9a8ad21d2f4515eaf329d71b3f1 (patch)
tree42d5424cbb293a8d1ca3ec130acd445183500e27 /src
parent47ff44e08e3a7e7a734fcd87c0043e47589aa545 (diff)
downloadandroid-node-v8-2fc87685d90ea9a8ad21d2f4515eaf329d71b3f1.tar.gz
android-node-v8-2fc87685d90ea9a8ad21d2f4515eaf329d71b3f1.tar.bz2
android-node-v8-2fc87685d90ea9a8ad21d2f4515eaf329d71b3f1.zip
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')
-rw-r--r--src/module_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index bae5e202dc..e27c644442 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,