Skip to content

Commit

Permalink
dir.c (dir_each_entry): remove unnecessary check
Browse files Browse the repository at this point in the history
I guess that this check was to detect re-entrance (maybe callcc?).
But currently it does not work as intended.
  • Loading branch information
mame committed Jul 14, 2019
1 parent 721fc84 commit 517c8a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dir.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 517c8a5

Please sign in to comment.