summaryrefslogtreecommitdiff
path: root/ext/stringio
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-09 07:34:39 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-09 07:34:39 (GMT)
commit2e02f2dfd2dab936e7cd9a68d46bd910c5d184e5 (patch)
treee01a27c2c8dd86a6e66eede5c517f748c2749fa2 /ext/stringio
parent5c87e39165b7c736224e134d0ed216914c81ccb1 (diff)
stringio.c: don't raise after close
* ext/stringio/stringio.c (strio_close): don't raise on dobule close for consistent to IO#close. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
-rw-r--r--ext/stringio/stringio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index cca408f..78988e1 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -346,9 +346,6 @@ static VALUE
strio_close(VALUE self)
{
StringIO(self);
- if (CLOSED(self)) {
- rb_raise(rb_eIOError, "closed stream");
- }
RBASIC(self)->flags &= ~STRIO_READWRITE;
return Qnil;
}