Remove unnecessary mrb_string_p() check.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-10-22 22:46:58 +09:00
parent 2f0bf1e110
commit 11184e9186
+1 -5
View File
@@ -907,11 +907,7 @@ mrb_io_syswrite(mrb_state *mrb, mrb_value io)
}
mrb_get_args(mrb, "S", &str);
if (!mrb_string_p(str)) {
buf = mrb_funcall(mrb, str, "to_s", 0);
} else {
buf = str;
}
buf = str;
if (fptr->fd2 == -1) {
fd = fptr->fd;