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:
parent
721fc84937
commit
517c8a5324
1 changed files with 0 additions and 1 deletions
1
dir.c
1
dir.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue