Skip to content

Commit c302cae

Browse files
sapicsaddaleax
authored andcommitted
src: remove unused variable in node_file.cc
PR-URL: #34317 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Zeyu Yang <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent f70cbc6 commit c302cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ static void ReadDir(const FunctionCallbackInfo<Value>& args) {
15871587
std::vector<Local<Value>> name_v;
15881588
std::vector<Local<Value>> type_v;
15891589

1590-
for (int i = 0; ; i++) {
1590+
for (;;) {
15911591
uv_dirent_t ent;
15921592

15931593
r = uv_fs_scandir_next(&(req_wrap_sync.req), &ent);

0 commit comments

Comments
 (0)