From ac00eb44aaf5a425e2859ab4164020f38e7e0177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 22 Aug 2019 23:45:49 +0200 Subject: [PATCH] module: avoid passing unnecessary loop reference It's a sync request, which doesn't require the loop parameter to be set. --- src/module_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index bae5e202dcdb11..e27c644442888b 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,