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);