From edab299d30ebe31f47a1b6eabb3c2839bf6d46a7 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 --- 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 f1d9824dfe871f..f50d8fb3c00110 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1641,7 +1641,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);