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

io.c: duplicate code

* io.c (rb_io_close_m): remove duplicate check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-03-09 04:57:51 +00:00
parent 140d7fd95d
commit dbbccb3cff

1
io.c
View file

@ -4427,7 +4427,6 @@ rb_io_close_m(VALUE io)
if (fptr->fd < 0) {
return Qnil;
}
rb_io_check_closed(RFILE(io)->fptr);
rb_io_close(io);
return Qnil;
}