aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-15 00:08:34 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-15 00:10:11 +0900
commit517c8a532425a28ee2641fc100a91a691b501fe8 (patch)
tree04abc7c322dd510c8045a9877fff5f05123cf4a4 /dir.c
parent721fc849370d88b87703b00ed1442295c1a94027 (diff)
downloadruby-517c8a532425a28ee2641fc100a91a691b501fe8.tar.gz
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.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 1dbedb763f..18c10f2139 100644
--- a/dir.c
+++ b/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;
}