From cbe63858804b7587981adf98785ea3f2384126f5 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 3e1cecdadc167a..4c368abb064fe1 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1645,7 +1645,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);