mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unnecessary mrb_string_p() check.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user