From c302cae814980802114f90b2905d123a5c93d621 Mon Sep 17 00:00:00 2001 From: sapics Date: Sun, 12 Jul 2020 02:14:34 +0900 Subject: [PATCH] src: remove unused variable in node_file.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/34317 Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen Reviewed-By: Zeyu Yang Reviewed-By: James M Snell Reviewed-By: Juan José Arboleda --- src/node_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index f9e0dbf8f885d4..3583456bbcc506 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1587,7 +1587,7 @@ static void ReadDir(const FunctionCallbackInfo& args) { std::vector> name_v; std::vector> type_v; - for (int i = 0; ; i++) { + for (;;) { uv_dirent_t ent; r = uv_fs_scandir_next(&(req_wrap_sync.req), &ent);