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