1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

dir.c (dir_each_entry): remove unnecessary check

I guess that this check was to detect re-entrance (maybe callcc?).
But currently it does not work as intended.
This commit is contained in:
Yusuke Endoh 2019-07-15 00:08:34 +09:00
parent 721fc84937
commit 517c8a5324

1
dir.c
View file

@ -858,7 +858,6 @@ dir_each_entry(VALUE dir, VALUE (*each)(VALUE, VALUE), VALUE arg, int children_o
#endif
path = rb_external_str_new_with_enc(name, namlen, dirp->enc);
(*each)(arg, path);
if (dirp->dir == NULL) dir_closed();
}
return dir;
}