1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Merge if statement

This commit is contained in:
S-H-GAMELINKS 2021-10-06 20:18:35 +09:00 committed by Samuel Williams
parent 273673aeaf
commit 323e7a6744
Notes: git 2021-10-07 15:19:08 +09:00

View file

@ -2973,10 +2973,7 @@ set_namespace_path_i(ID id, VALUE v, void *payload)
VALUE value = ce->value;
int has_permanent_classpath;
VALUE parental_path = *((VALUE *) payload);
if (!rb_is_const_id(id)) {
return ID_TABLE_CONTINUE;
}
if (!rb_namespace_p(value)) {
if (!rb_is_const_id(id) || !rb_namespace_p(value)) {
return ID_TABLE_CONTINUE;
}
classname(value, &has_permanent_classpath);