[ruby/stringio] Removed wrong UNREACHABLE

https://github.com/ruby/stringio/commit/f528538d10
This commit is contained in:
Nobuyoshi Nakada 2020-07-19 01:30:01 +09:00
parent 574871781b
commit a7c67fc6da
Notes: git 2020-07-20 14:59:46 +09:00

View File

@ -1438,7 +1438,6 @@ strio_write(VALUE self, VALUE str)
VALUE converted = rb_str_conv_enc(str, enc2, enc);
if (converted == str && enc2 != ascii8bit) { /* conversion failed */
rb_enc_check(rb_enc_from_encoding(enc), str);
UNREACHABLE;
}
str = converted;
}