Remove redundant type-check

since mrb_str_to_str() also does it.
This commit is contained in:
Wataru Ashihara
2020-09-18 13:31:37 +09:00
parent e440681a06
commit 4375bffee5
-3
View File
@@ -1963,9 +1963,6 @@ mrb_str_intern(mrb_state *mrb, mrb_value self)
MRB_API mrb_value
mrb_obj_as_string(mrb_state *mrb, mrb_value obj)
{
if (mrb_string_p(obj)) {
return obj;
}
return mrb_str_to_str(mrb, obj);
}