Remove check for RCLASS_EXT in variable.c
A class/module should always have a RCLASS_EXT, so we shouldn't need to check that it exists.
This commit is contained in:
parent
327cf5ec40
commit
ac8cf010bc
Notes:
git
2023-01-11 14:16:54 +00:00
@ -112,7 +112,6 @@ static VALUE
|
|||||||
classname(VALUE klass, int *permanent)
|
classname(VALUE klass, int *permanent)
|
||||||
{
|
{
|
||||||
*permanent = 0;
|
*permanent = 0;
|
||||||
if (!RCLASS_EXT(klass)) return Qnil;
|
|
||||||
|
|
||||||
VALUE classpathv = rb_ivar_lookup(klass, classpath, Qnil);
|
VALUE classpathv = rb_ivar_lookup(klass, classpath, Qnil);
|
||||||
if (RTEST(classpathv)) {
|
if (RTEST(classpathv)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user