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:
parent
273673aeaf
commit
323e7a6744
Notes:
git
2021-10-07 15:19:08 +09:00
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue