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:
parent
140d7fd95d
commit
dbbccb3cff
1 changed files with 0 additions and 1 deletions
1
io.c
1
io.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue